#[non_exhaustive]pub struct PageCacheStats {
pub size: BytePageSize,
pub hits: u64,
pub misses: u64,
pub fallbacks: u64,
pub cached: u64,
pub freed: u64,
pub pages: usize,
pub bytes: usize,
}Expand description
Page cache statistics of one page size.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.size: BytePageSizePage size, BytePageSize::Unset for the totals of all page sizes.
hits: u64Number of pages of this size taken from the cache, including pages
taken in place of the next larger size, see fallbacks.
misses: u64Number of requests for this page size that found no cached page of this size.
misses - fallbacks pages were allocated.
fallbacks: u64Number of misses of a new buffer served with a cached page of the next smaller size, which is counted as a hit of that size.
cached: u64Number of released pages returned to the cache.
freed: u64Number of released pages freed because the cache was full.
pages: usizeNumber of pages in the cache.
bytes: usizeMemory held by the pages in the cache, in bytes.
Trait Implementations§
Source§impl Clone for PageCacheStats
impl Clone for PageCacheStats
impl Copy for PageCacheStats
Source§impl Debug for PageCacheStats
impl Debug for PageCacheStats
Source§impl Default for PageCacheStats
impl Default for PageCacheStats
impl Eq for PageCacheStats
Source§impl PartialEq for PageCacheStats
impl PartialEq for PageCacheStats
impl StructuralPartialEq for PageCacheStats
Auto Trait Implementations§
impl Forget for PageCacheStats
impl Freeze for PageCacheStats
impl RefUnwindSafe for PageCacheStats
impl Send for PageCacheStats
impl Sync for PageCacheStats
impl Unpin for PageCacheStats
impl UnsafeUnpin for PageCacheStats
impl UnwindSafe for PageCacheStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more