pub struct AllocatorReport {
pub allocations: Vec<AllocationReport>,
pub blocks: Vec<MemoryBlockReport>,
pub total_allocated_bytes: u64,
pub total_reserved_bytes: u64,
}Expand description
A report that can be generated for informational purposes using Allocator::generate_report().
Fields§
§allocations: Vec<AllocationReport>All live allocations, sub-allocated from memory blocks.
blocks: Vec<MemoryBlockReport>All memory blocks.
total_allocated_bytes: u64Sum of the memory used by all allocations, in bytes.
total_reserved_bytes: u64Sum of the memory reserved by all memory blocks including unallocated regions, in bytes.
Trait Implementations§
Source§impl Clone for AllocatorReport
impl Clone for AllocatorReport
Source§fn clone(&self) -> AllocatorReport
fn clone(&self) -> AllocatorReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Forget for AllocatorReport
impl Freeze for AllocatorReportwhere
*const u8 is !null: Freeze,
PhantomData<AllocationReport>: Freeze,
PhantomData<MemoryBlockReport>: Freeze,
impl Move for AllocatorReport
impl RefUnwindSafe for AllocatorReport
impl Send for AllocatorReportwhere
RawVecInner: Send,
impl Sync for AllocatorReportwhere
RawVecInner: Sync,
impl Unpin for AllocatorReport
impl UnsafeUnpin for AllocatorReportwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<AllocationReport>: UnsafeUnpin,
PhantomData<MemoryBlockReport>: UnsafeUnpin,
impl UnwindSafe for AllocatorReportwhere
RawVecInner: UnwindSafe,
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