pub struct HeapStats {
pub allocated_bytes: usize,
pub freed_bytes: usize,
pub used_bytes: usize,
pub peak_bytes: usize,
pub allocation_count: u64,
pub free_count: u64,
}Expand description
Heap statistics
Fields§
§allocated_bytes: usizeTotal bytes allocated
freed_bytes: usizeTotal bytes freed
used_bytes: usizeCurrent bytes in use
peak_bytes: usizePeak bytes used
allocation_count: u64Number of allocations
free_count: u64Number of frees
Trait Implementations§
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)