pub struct MemorySnapshot {
pub current_bytes: u64,
pub peak_bytes: u64,
pub total_allocated: u64,
pub total_deallocated: u64,
pub allocation_count: u64,
pub deallocation_count: u64,
pub regions: HashMap<String, RegionSnapshot>,
}Expand description
Snapshot of memory state at a point in time.
Fields§
§current_bytes: u64Current memory usage in bytes.
peak_bytes: u64Peak memory usage in bytes.
total_allocated: u64Total bytes allocated since start.
total_deallocated: u64Total bytes deallocated since start.
allocation_count: u64Number of allocations.
deallocation_count: u64Number of deallocations.
regions: HashMap<String, RegionSnapshot>Per-region snapshots.
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 moreSource§impl Debug for MemorySnapshot
impl Debug for MemorySnapshot
Source§impl<'de> Deserialize<'de> for MemorySnapshot
impl<'de> Deserialize<'de> for MemorySnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MemorySnapshot
impl RefUnwindSafe for MemorySnapshot
impl Send for MemorySnapshot
impl Sync for MemorySnapshot
impl Unpin for MemorySnapshot
impl UnsafeUnpin 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