pub struct AllocatorStats {
pub allocation_count: usize,
pub native_allocation_count: usize,
pub pooled_block_count: usize,
pub allocation_bytes: u64,
pub reserved_bytes: u64,
pub native_bytes: u64,
pub mapped_native_count: usize,
}Expand description
Local accounting snapshot; excludes allocations made by other allocators/raw calls.
Fields§
§allocation_count: usize§native_allocation_count: usize§pooled_block_count: usize§allocation_bytes: u64Sum of native requirements sizes of live regions.
reserved_bytes: u64Includes cache-atom padding reserved to live pooled regions.
native_bytes: u64§mapped_native_count: usizeTrait Implementations§
Source§impl Clone for AllocatorStats
impl Clone for AllocatorStats
impl Copy for AllocatorStats
Source§impl Debug for AllocatorStats
impl Debug for AllocatorStats
Source§impl Default for AllocatorStats
impl Default for AllocatorStats
impl Eq for AllocatorStats
Source§impl PartialEq for AllocatorStats
impl PartialEq for AllocatorStats
impl StructuralPartialEq for AllocatorStats
Auto Trait Implementations§
impl Freeze for AllocatorStats
impl RefUnwindSafe for AllocatorStats
impl Send for AllocatorStats
impl Sync for AllocatorStats
impl Unpin for AllocatorStats
impl UnsafeUnpin for AllocatorStats
impl UnwindSafe for AllocatorStats
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