pub struct AllocStats {
pub allocs: u64,
pub deallocs: u64,
pub reallocs: u64,
pub bytes_allocated: u64,
}Expand description
Heap operations observed on one thread.
Fields§
§allocs: u64alloc + alloc_zeroed calls.
deallocs: u64dealloc calls.
reallocs: u64realloc calls.
bytes_allocated: u64Bytes requested by alloc, alloc_zeroed and realloc (new size).
Implementations§
Trait Implementations§
Source§impl Clone for AllocStats
impl Clone for AllocStats
impl Copy for AllocStats
Source§impl Debug for AllocStats
impl Debug for AllocStats
Source§impl Default for AllocStats
impl Default 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