Struct mnemos_alloc::heap::stats::Stats
source · pub(super) struct Stats {
pub(super) allocated: AtomicUsize,
pub(super) alloc_success_count: AtomicUsize,
pub(super) alloc_oom_count: AtomicUsize,
pub(super) dealloc_count: AtomicUsize,
pub(super) allocating: AtomicU16,
pub(super) deallocating: AtomicU16,
}
Available on crate feature
stats
only.Fields§
§allocated: AtomicUsize
The total amount of memory currently allocated, in bytes.
alloc_success_count: AtomicUsize
A count of heap allocation attempts that have been completed successfully.
alloc_oom_count: AtomicUsize
A count of heap allocation attempts that have failed because the heap was at capacity.
dealloc_count: AtomicUsize
A count of the number of times an allocation has been deallocated.
allocating: AtomicU16
A count of the total number of current allocation attempts.
deallocating: AtomicU16
A count of the total number of current deallocation attempts.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin 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