pub struct AggregateMemoryStats {
pub f32_stats: MemoryStats,
pub f64_stats: MemoryStats,
pub i32_stats: MemoryStats,
pub i64_stats: MemoryStats,
}Expand description
Aggregate memory statistics across all type pools
Fields§
§f32_stats: MemoryStats§f64_stats: MemoryStats§i32_stats: MemoryStats§i64_stats: MemoryStatsImplementations§
Source§impl AggregateMemoryStats
impl AggregateMemoryStats
Sourcepub fn overall_hit_rate(&self) -> f64
pub fn overall_hit_rate(&self) -> f64
Calculate overall hit rate across all pools
Sourcepub fn total_allocations(&self) -> usize
pub fn total_allocations(&self) -> usize
Calculate total allocations across all pools
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AggregateMemoryStats
impl RefUnwindSafe for AggregateMemoryStats
impl Send for AggregateMemoryStats
impl Sync for AggregateMemoryStats
impl Unpin for AggregateMemoryStats
impl UnsafeUnpin for AggregateMemoryStats
impl UnwindSafe for AggregateMemoryStats
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> 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