#[non_exhaustive]pub struct HeapStats {
pub total_blocks: u64,
pub total_bytes: u64,
pub curr_blocks: usize,
pub curr_bytes: usize,
pub max_blocks: usize,
pub max_bytes: usize,
}Expand description
Stats from heap profiling.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.total_blocks: u64Number of blocks (a.k.a. allocations) allocated over the entire run.
total_bytes: u64Number of bytes allocated over the entire run.
curr_blocks: usizeNumber of blocks (a.k.a. allocations) currently allocated.
curr_bytes: usizeNumber of bytes currently allocated.
max_blocks: usizeNumber of blocks (a.k.a. allocations) allocated at the global peak,
i.e. when curr_bytes peaked.
max_bytes: usizeNumber of bytes allocated at the global peak, i.e. when curr_bytes
peaked.
Implementations§
Trait Implementations§
impl Eq for HeapStats
impl StructuralPartialEq for HeapStats
Auto Trait Implementations§
impl Freeze for HeapStats
impl RefUnwindSafe for HeapStats
impl Send for HeapStats
impl Sync for HeapStats
impl Unpin for HeapStats
impl UnwindSafe for HeapStats
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