pub struct AllocStats {
pub allocs: usize,
pub deallocs: usize,
pub bytes_allocated: usize,
pub bytes_freed: usize,
pub bytes_live: usize,
}Expand description
A snapshot of allocation statistics produced by CountingAllocator::stats.
Fields§
§allocs: usizeTotal number of successful allocations recorded.
deallocs: usizeTotal number of deallocations recorded.
bytes_allocated: usizeCumulative bytes requested across all successful allocations.
bytes_freed: usizeCumulative bytes released across all deallocations.
bytes_live: usizeCurrent live byte footprint: bytes_allocated - bytes_freed (saturating).
Auto Trait Implementations§
impl Freeze for AllocStats
impl RefUnwindSafe for AllocStats
impl Send for AllocStats
impl Sync for AllocStats
impl Unpin for AllocStats
impl UnsafeUnpin for AllocStats
impl UnwindSafe for AllocStats
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