pub struct Statistics {
pub region_stats: [Option<RegionStatistics>; 3],
pub size: usize,
pub current_usage: usize,
pub max_usage: usize,
pub total_allocated: usize,
pub total_freed: usize,
}Fields§
§region_stats: [Option<RegionStatistics>; 3]Granular stats for all the configured memory regions.
size: usizeTotal size of all combined heap regions in bytes.
current_usage: usizeCurrent usage of the heap across all configured regions in bytes.
max_usage: usizeEstimation of the max used heap in bytes.
total_allocated: usizeEstimation of the total allocated bytes since initialization.
total_freed: usizeEstimation of the total freed bytes since initialization.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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