Struct wgpu_types::counters::AllocatorReport
source · 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: u64
Sum of the memory used by all allocations, in bytes.
total_reserved_bytes: u64
Sum 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 copy of the value. Read more
1.0.0 · 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 Freeze for AllocatorReport
impl RefUnwindSafe for AllocatorReport
impl Send for AllocatorReport
impl Sync for AllocatorReport
impl Unpin for AllocatorReport
impl UnwindSafe for AllocatorReport
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)