pub struct Counters {
pub calls: u64,
pub bytes: u64,
pub live_bytes: i64,
pub live_allocations: i64,
}Expand description
Allocation counters for a single thread.
Fields§
§calls: u64Number of allocation requests: allocations, zeroed allocations and reallocations.
bytes: u64Total number of bytes requested by those allocations.
live_bytes: i64Bytes currently allocated and not yet freed.
live_allocations: i64Number of allocations currently live.
Implementations§
Trait Implementations§
impl Copy for Counters
impl Eq for Counters
impl StructuralPartialEq for Counters
Auto Trait Implementations§
impl Freeze for Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnsafeUnpin for Counters
impl UnwindSafe for Counters
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