pub struct Stats {
pub chunks: usize,
pub huge: usize,
pub huge_cached: usize,
pub metadata: usize,
}Expand description
Memory the allocator holds from the OS, in bytes
Fields§
§chunks: usizeChunks that hold small and large allocations
huge: usizeMappings of huge allocations that are in use
huge_cached: usizeFreed huge mappings kept for reuse
metadata: usizeThe allocator’s own metadata, including the heap profiler’s
Implementations§
Trait Implementations§
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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