pub struct PoolStats {
pub total_allocations: u64,
pub cache_hits: u64,
pub cache_misses: u64,
pub current_memory_usage: usize,
pub peak_memory_usage: usize,
pub cleanup_count: u64,
}
Expand description
Statistics about buffer pool usage
Fields§
§total_allocations: u64
Total allocations requested
cache_hits: u64
Cache hits (buffer reused)
cache_misses: u64
Cache misses (new buffer allocated)
current_memory_usage: usize
Current memory usage in bytes
peak_memory_usage: usize
Peak memory usage in bytes
cleanup_count: u64
Number of cleanup operations performed
Implementations§
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