pub struct HeapStats {
pub used_bytes: usize,
pub allocated_bytes: usize,
pub rss_bytes: usize,
pub virtual_bytes: usize,
pub peak_rss_bytes: usize,
pub segments: usize,
}Expand description
Heap statistics.
Fields§
§used_bytes: usizeBytes currently used.
allocated_bytes: usizeBytes currently allocated from OS.
rss_bytes: usizeResident set size.
virtual_bytes: usizeVirtual memory size.
peak_rss_bytes: usizePeak RSS.
segments: usizeNumber of heap segments.
Implementations§
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§
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