Struct dhat::HeapStats [−][src]
#[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
Auto Trait Implementations
impl RefUnwindSafe for HeapStats
impl UnwindSafe for HeapStats
Blanket Implementations
Mutably borrows from an owned value. Read more