pub struct MemoryStatistics {
pub total_allocated_bytes: usize,
pub total_deallocated_bytes: usize,
pub active_allocations: usize,
pub current_memory_usage: usize,
pub peak_memory_usage: usize,
pub allocation_requests: usize,
pub pool_reuses: usize,
pub garbage_collections: usize,
pub average_allocation_size: f64,
}Expand description
Memory usage statistics
Fields§
§total_allocated_bytes: usizeTotal bytes allocated since start
total_deallocated_bytes: usizeTotal bytes deallocated since start
active_allocations: usizeCurrent active allocations
current_memory_usage: usizeCurrent memory usage
peak_memory_usage: usizePeak memory usage
allocation_requests: usizeNumber of allocation requests
pool_reuses: usizeNumber of successful reuses from pool
garbage_collections: usizeNumber of garbage collections performed
average_allocation_size: f64Average allocation size
Trait Implementations§
Source§impl Clone for MemoryStatistics
impl Clone for MemoryStatistics
Source§fn clone(&self) -> MemoryStatistics
fn clone(&self) -> MemoryStatistics
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 MemoryStatistics
impl Debug for MemoryStatistics
Auto Trait Implementations§
impl Freeze for MemoryStatistics
impl RefUnwindSafe for MemoryStatistics
impl Send for MemoryStatistics
impl Sync for MemoryStatistics
impl Unpin for MemoryStatistics
impl UnsafeUnpin for MemoryStatistics
impl UnwindSafe for MemoryStatistics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more