pub struct MemoryPoolStats {
pub pool_size: u64,
pub current_usage: u64,
pub peak_usage: u64,
pub available: u64,
pub allocation_count: u64,
pub deallocation_count: u64,
pub defrag_count: u64,
pub free_block_count: usize,
pub allocated_block_count: usize,
pub largest_free_block: u64,
pub fragmentation: f64,
}Expand description
Memory pool statistics
Fields§
§pool_size: u64Total pool size
current_usage: u64Current memory usage
peak_usage: u64Peak memory usage
available: u64Available memory
allocation_count: u64Number of allocations
deallocation_count: u64Number of deallocations
defrag_count: u64Number of defragmentations
free_block_count: usizeNumber of free blocks
allocated_block_count: usizeNumber of allocated blocks
largest_free_block: u64Size of largest free block
fragmentation: f64Fragmentation factor (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for MemoryPoolStats
impl Clone for MemoryPoolStats
Source§fn clone(&self) -> MemoryPoolStats
fn clone(&self) -> MemoryPoolStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MemoryPoolStats
impl RefUnwindSafe for MemoryPoolStats
impl Send for MemoryPoolStats
impl Sync for MemoryPoolStats
impl Unpin for MemoryPoolStats
impl UnsafeUnpin for MemoryPoolStats
impl UnwindSafe for MemoryPoolStats
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