/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2009 Oracle. All rights reserved. * */ using System; using System.Collections.Generic; using System.Text; namespace BerkeleyDB { /// /// Statistical information about a file in the memory pool /// public class MPoolFileStats { private Internal.MPoolFileStatStruct st; internal MPoolFileStats(Internal.MPoolFileStatStruct stats) { st = stats; } /// /// File name. /// public string FileName { get { return st.file_name; } } /// /// Pages from mapped files. /// public uint MappedPages { get { return st.st_map; } } /// /// Pages created in the cache. /// public ulong PagesCreatedInCache { get { return st.st_page_create; } } /// /// Pages found in the cache. /// public ulong PagesInCache { get { return st.st_cache_hit; } } /// /// Pages not found in the cache. /// public ulong PagesNotInCache { get { return st.st_cache_miss; } } /// /// Pages read in. /// public ulong PagesRead { get { return st.st_page_in; } } /// /// Page size. /// public uint PageSize { get { return st.st_pagesize; } } /// /// Pages written out. /// public ulong PagesWritten { get { return st.st_page_out; } } } }