pub struct AllocStats {
pub current_memory_usage: usize,
pub peak_memory_usage: usize,
}Expand description
Memory usage statistics from the snmalloc backend.
These are range-level figures (slab/chunk granularity) reflecting bytes reserved from the OS, not the count of live individual allocations.
Fields§
§current_memory_usage: usizeBytes currently reserved from the OS.
peak_memory_usage: usizeHigh-water mark of current_memory_usage.
Trait Implementations§
Source§impl Clone for AllocStats
impl Clone for AllocStats
Source§fn clone(&self) -> AllocStats
fn clone(&self) -> AllocStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AllocStats
Source§impl Debug for AllocStats
impl Debug for AllocStats
impl Eq for AllocStats
Source§impl PartialEq for AllocStats
impl PartialEq for AllocStats
impl StructuralPartialEq for AllocStats
Auto Trait Implementations§
impl Freeze for AllocStats
impl RefUnwindSafe for AllocStats
impl Send for AllocStats
impl Sync for AllocStats
impl Unpin for AllocStats
impl UnsafeUnpin for AllocStats
impl UnwindSafe for AllocStats
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