pub struct MemoryRegion { /* private fields */ }Expand description
A memory region for tracking allocations by category.
Implementations§
Source§impl MemoryRegion
impl MemoryRegion
Sourcepub fn record_allocation(&self, size: u64)
pub fn record_allocation(&self, size: u64)
Record an allocation.
Sourcepub fn record_deallocation(&self, size: u64)
pub fn record_deallocation(&self, size: u64)
Record a deallocation.
Sourcepub fn snapshot(&self) -> RegionSnapshot
pub fn snapshot(&self) -> RegionSnapshot
Get a snapshot of this region.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for MemoryRegion
impl RefUnwindSafe for MemoryRegion
impl Send for MemoryRegion
impl Sync for MemoryRegion
impl Unpin for MemoryRegion
impl UnsafeUnpin for MemoryRegion
impl UnwindSafe for MemoryRegion
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