pub struct IncrementalAllocStats {
pub alloc: usize,
pub dealloc: usize,
pub largest_alloc: usize,
}
Expand description
Statistics for allocations and deallocations made with an AccountingAlloc
since the last call to
AccountingAlloc::count
, across all threads.
Fields§
§alloc: usize
Count of allocated bytes.
dealloc: usize
Count of deallocated bytes.
largest_alloc: usize
Largest allocation size in bytes.
Trait Implementations§
Source§impl Clone for IncrementalAllocStats
impl Clone for IncrementalAllocStats
Source§fn clone(&self) -> IncrementalAllocStats
fn clone(&self) -> IncrementalAllocStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IncrementalAllocStats
impl Debug for IncrementalAllocStats
Source§impl Default for IncrementalAllocStats
impl Default for IncrementalAllocStats
Source§fn default() -> IncrementalAllocStats
fn default() -> IncrementalAllocStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for IncrementalAllocStats
impl PartialEq for IncrementalAllocStats
impl Copy for IncrementalAllocStats
impl Eq for IncrementalAllocStats
impl StructuralPartialEq for IncrementalAllocStats
Auto Trait Implementations§
impl Freeze for IncrementalAllocStats
impl RefUnwindSafe for IncrementalAllocStats
impl Send for IncrementalAllocStats
impl Sync for IncrementalAllocStats
impl Unpin for IncrementalAllocStats
impl UnwindSafe for IncrementalAllocStats
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