pub struct MemoryStatistics {
pub algorithm_count: usize,
pub total_current: usize,
pub total_peak: usize,
pub global_peak: usize,
pub average_current: usize,
pub average_peak: usize,
pub most_efficient: Option<AlgorithmType>,
pub least_efficient: Option<AlgorithmType>,
}
Expand description
Memory usage statistics summary
Fields§
§algorithm_count: usize
Total algorithms being tracked
total_current: usize
Total current memory usage
total_peak: usize
Total peak memory usage
global_peak: usize
Global peak across all algorithms
average_current: usize
Average current usage per algorithm
average_peak: usize
Average peak usage per algorithm
most_efficient: Option<AlgorithmType>
Most memory-efficient algorithm
least_efficient: Option<AlgorithmType>
Least memory-efficient algorithm
Implementations§
Source§impl MemoryStatistics
impl MemoryStatistics
Sourcepub fn from_collection(collection: &MemoryMetricsCollection) -> Self
pub fn from_collection(collection: &MemoryMetricsCollection) -> Self
Generate statistics from a memory metrics collection
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 moreAuto Trait Implementations§
impl Freeze for MemoryStatistics
impl RefUnwindSafe for MemoryStatistics
impl Send for MemoryStatistics
impl Sync for MemoryStatistics
impl Unpin 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