pub struct Snapshot {
pub live_bytes: u64,
pub accum_bytes: u64,
pub live_count: u64,
pub accum_count: u64,
}Expand description
Running totals maintained while tracking is enabled.
Counters are not reconstructed for time spent with tracking off: a total is exact only if tracking was enabled before the first allocation and never disabled.
Fields§
§live_bytes: u64Tracked live usable bytes right now.
accum_bytes: u64Cumulative usable bytes ever allocated.
live_count: u64Tracked live allocation count right now.
accum_count: u64Cumulative count of successful allocate events.
Trait Implementations§
impl Copy for Snapshot
impl Eq for Snapshot
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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