pub struct PoolStats {
pub allocations: u64,
pub deallocations: u64,
pub pool_hits: u64,
pub pool_misses: u64,
pub peak_usage: usize,
pub current_usage: usize,
pub growth_events: u64,
}Expand description
Statistics for symbol pool usage.
Fields§
§allocations: u64Total allocations handed out.
deallocations: u64Total deallocations returned to the pool.
pool_hits: u64Allocations satisfied from the free list.
pool_misses: u64Allocation attempts that required growth or failed.
peak_usage: usizePeak number of outstanding buffers.
current_usage: usizeCurrent number of outstanding buffers.
growth_events: u64Number of growth events.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnsafeUnpin for PoolStats
impl UnwindSafe for PoolStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).