pub struct MemorySnapshot {
pub total_allocs: u64,
pub total_deallocs: u64,
pub current_bytes: usize,
pub peak_bytes: usize,
pub timestamp: Instant,
}Expand description
Memory snapshot at a point in time
Fields§
§total_allocs: u64§total_deallocs: u64§current_bytes: usize§peak_bytes: usize§timestamp: InstantImplementations§
Source§impl MemorySnapshot
impl MemorySnapshot
Sourcepub fn diff(&self, other: &MemorySnapshot) -> MemoryDiff
pub fn diff(&self, other: &MemorySnapshot) -> MemoryDiff
Calculate difference from another snapshot
Trait Implementations§
Source§impl Clone for MemorySnapshot
impl Clone for MemorySnapshot
Source§fn clone(&self) -> MemorySnapshot
fn clone(&self) -> MemorySnapshot
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 MemorySnapshot
impl RefUnwindSafe for MemorySnapshot
impl Send for MemorySnapshot
impl Sync for MemorySnapshot
impl Unpin for MemorySnapshot
impl UnwindSafe for MemorySnapshot
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