pub struct PoolStats {
pub total_allocations: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub total_bytes_allocated: u64,
pub pooled_bytes_served: u64,
pub peak_memory_usage: usize,
pub current_memory_usage: usize,
}Expand description
Performance statistics for the memory pool
Fields§
§total_allocations: u64Total allocations requested
cache_hits: u64Cache hits (allocations served from pool)
cache_misses: u64Cache misses (new allocations)
total_bytes_allocated: u64Total bytes allocated
pooled_bytes_served: u64Total bytes served from pool
peak_memory_usage: usizePeak memory usage
current_memory_usage: usizeCurrent memory usage
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 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