pub struct MemoryStats {
pub total_allocations: usize,
pub total_deallocations: usize,
pub total_allocated: usize,
pub total_deallocated: usize,
pub active_allocations: usize,
pub active_memory: usize,
pub peak_allocations: usize,
pub peak_memory: usize,
pub lifecycle_stats: LifecycleStats,
}
Expand description
Memory usage statistics
Fields§
§total_allocations: usize
Total number of allocations tracked
total_deallocations: usize
Total number of deallocations tracked
total_allocated: usize
Total bytes allocated
total_deallocated: usize
Total bytes deallocated
active_allocations: usize
Current number of active allocations
active_memory: usize
Current bytes in active allocations
peak_allocations: usize
Peak number of active allocations
peak_memory: usize
Peak memory usage in bytes
lifecycle_stats: LifecycleStats
Lifecycle statistics
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§fn clone(&self) -> MemoryStats
fn clone(&self) -> MemoryStats
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 MemoryStats
impl Debug for MemoryStats
Source§impl Default for MemoryStats
impl Default for MemoryStats
Source§fn default() -> MemoryStats
fn default() -> MemoryStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MemoryStats
impl<'de> Deserialize<'de> for MemoryStats
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 MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnwindSafe for MemoryStats
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