pub struct PoolStatistics {
pub total_allocations: u64,
pub total_deallocations: u64,
pub current_allocated: u64,
pub peak_allocated: u64,
pub total_bytes_allocated: u64,
pub pool_hits: u64,
pub pool_misses: u64,
pub grow_operations: u64,
pub avg_allocation_time_nanos: u64,
}Expand description
Statistics for memory pool usage
Fields§
§total_allocations: u64Total number of allocations made from this pool
total_deallocations: u64Total number of deallocations returned to this pool
current_allocated: u64Current number of buffers allocated and in use
peak_allocated: u64Peak number of buffers allocated at any point
total_bytes_allocated: u64Total bytes allocated throughout the pool’s lifetime
pool_hits: u64Number of times a buffer was successfully retrieved from the pool
pool_misses: u64Number of times pool was empty and required allocation or growth
grow_operations: u64Number of times the pool was grown to accommodate more buffers
avg_allocation_time_nanos: u64Average allocation time in nanoseconds (exponential moving average)
Trait Implementations§
Source§impl Clone for PoolStatistics
impl Clone for PoolStatistics
Source§fn clone(&self) -> PoolStatistics
fn clone(&self) -> PoolStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PoolStatistics
impl Debug for PoolStatistics
Source§impl Default for PoolStatistics
impl Default for PoolStatistics
Source§fn default() -> PoolStatistics
fn default() -> PoolStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PoolStatistics
impl RefUnwindSafe for PoolStatistics
impl Send for PoolStatistics
impl Sync for PoolStatistics
impl Unpin for PoolStatistics
impl UnwindSafe for PoolStatistics
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