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, or full accounted external import extents.
reserved_bytes: u64Includes cache-atom padding reserved to live pooled regions.
native_bytes: u64§mapped_native_count: usizeImplementations§
Source§impl AllocatorStats
impl AllocatorStats
Sourcepub fn set_allocation_count(self, value: usize) -> Self
pub fn set_allocation_count(self, value: usize) -> Self
Set allocation_count and return the updated record.
Sourcepub fn set_native_allocation_count(self, value: usize) -> Self
pub fn set_native_allocation_count(self, value: usize) -> Self
Set native_allocation_count and return the updated record.
Sourcepub fn set_pooled_block_count(self, value: usize) -> Self
pub fn set_pooled_block_count(self, value: usize) -> Self
Set pooled_block_count and return the updated record.
Sourcepub fn set_allocation_bytes(self, value: u64) -> Self
pub fn set_allocation_bytes(self, value: u64) -> Self
Set allocation_bytes and return the updated record.
Sourcepub fn set_reserved_bytes(self, value: u64) -> Self
pub fn set_reserved_bytes(self, value: u64) -> Self
Set reserved_bytes and return the updated record.
Sourcepub fn set_native_bytes(self, value: u64) -> Self
pub fn set_native_bytes(self, value: u64) -> Self
Set native_bytes and return the updated record.
Sourcepub fn set_mapped_native_count(self, value: usize) -> Self
pub fn set_mapped_native_count(self, value: usize) -> Self
Set mapped_native_count and return the updated record.
Trait 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 Forget for AllocatorStats
impl Freeze for AllocatorStats
impl Move 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