#[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: u64
Number of blocks (a.k.a. allocations) allocated over the entire run.
total_bytes: u64
Number of bytes allocated over the entire run.
curr_blocks: usize
Number of blocks (a.k.a. allocations) currently allocated.
curr_bytes: usize
Number of bytes currently allocated.
max_blocks: usize
Number of blocks (a.k.a. allocations) allocated at the global peak,
i.e. when curr_bytes
peaked.
max_bytes: usize
Number of bytes allocated at the global peak, i.e. when curr_bytes
peaked.
Implementations§
Trait Implementations§
source§impl PartialEq for HeapStats
impl PartialEq for HeapStats
impl Eq for HeapStats
impl StructuralPartialEq for HeapStats
Auto Trait Implementations§
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