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
Auto 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more