pub struct MemorySnapshot {
pub timestamp: DateTime<Utc>,
pub total_memory_bytes: u64,
pub heap_memory_bytes: u64,
pub stack_memory_bytes: u64,
pub allocation_count: u64,
pub allocations_by_size: HashMap<usize, u64>,
pub allocations_by_location: HashMap<String, AllocationInfo>,
}
Expand description
Memory snapshot
Fields§
§timestamp: DateTime<Utc>
Snapshot timestamp
total_memory_bytes: u64
Total memory usage in bytes
heap_memory_bytes: u64
Heap memory usage in bytes
stack_memory_bytes: u64
Stack memory usage in bytes
allocation_count: u64
Number of allocations
allocations_by_size: HashMap<usize, u64>
Memory allocations by size
allocations_by_location: HashMap<String, AllocationInfo>
Memory allocations by location
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 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