pub struct FBufSlabsStats {
pub cached_buffers: usize,
pub fallback_alloc_requests: u64,
pub fallback_recycle_requests: u64,
pub classes: Vec<FBufSlabStatsSnapshot>,
}Expand description
Snapshot of an FBufSlabs.
Fields§
§cached_buffers: usizeNumber of cached buffers currently retained across all slab classes.
fallback_alloc_requests: u64Allocation requests that bypassed slab reuse because the requested capacity does not map to any slab size class.
fallback_recycle_requests: u64Recycle requests that bypassed slab reuse because the buffer capacity does not map to any slab size class.
classes: Vec<FBufSlabStatsSnapshot>Per-size-class request counters and free-list occupancy information.
Implementations§
Source§impl FBufSlabsStats
impl FBufSlabsStats
Sourcepub fn alloc_requests(&self) -> u64
pub fn alloc_requests(&self) -> u64
Returns the total number of allocation requests observed across the slab set, including fallback-only requests.
Sourcepub fn recycle_requests(&self) -> u64
pub fn recycle_requests(&self) -> u64
Returns the total number of recycle requests observed across the slab set, including fallback-only requests.
Sourcepub fn mallocs_saved(&self) -> u64
pub fn mallocs_saved(&self) -> u64
Returns the number of allocations that reused an already cached buffer.
Sourcepub fn malloc_fallbacks(&self) -> u64
pub fn malloc_fallbacks(&self) -> u64
Returns the number of allocation requests that fell back to direct allocation, either because no cached buffer was available or because the request was outside the slabbed range.
Sourcepub fn frees_saved(&self) -> u64
pub fn frees_saved(&self) -> u64
Returns the number of frees that were converted into slab reuse by caching the buffer instead of immediately deallocating it.
Sourcepub fn free_fallbacks(&self) -> u64
pub fn free_fallbacks(&self) -> u64
Returns the number of recycle requests that fell back to direct deallocation, either because a slab class was full or because the buffer capacity was outside the slabbed range.
Trait Implementations§
Source§impl Add for FBufSlabsStats
impl Add for FBufSlabsStats
Source§impl AddAssign for FBufSlabsStats
impl AddAssign for FBufSlabsStats
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl Clone for FBufSlabsStats
impl Clone for FBufSlabsStats
Source§impl Debug for FBufSlabsStats
impl Debug for FBufSlabsStats
Source§impl Default for FBufSlabsStats
impl Default for FBufSlabsStats
impl Eq for FBufSlabsStats
Source§impl PartialEq for FBufSlabsStats
impl PartialEq for FBufSlabsStats
impl StructuralPartialEq for FBufSlabsStats
Auto Trait Implementations§
impl Forget for FBufSlabsStats
impl Freeze for FBufSlabsStats
impl RefUnwindSafe for FBufSlabsStats
impl Send for FBufSlabsStats
impl Sync for FBufSlabsStats
impl Unpin for FBufSlabsStats
impl UnsafeUnpin for FBufSlabsStats
impl UnwindSafe for FBufSlabsStats
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more