Struct ccthw_ash_allocator::TraceAllocator
source · pub struct TraceAllocator<T: ComposableAllocator> { /* private fields */ }
Expand description
An allocator decorator which tracks metrics and generates a report for all allocations made to the wrapped allocator.
Implementations§
source§impl<T: ComposableAllocator> TraceAllocator<T>
impl<T: ComposableAllocator> TraceAllocator<T>
Trait Implementations§
source§impl<T: ComposableAllocator> ComposableAllocator for TraceAllocator<T>
impl<T: ComposableAllocator> ComposableAllocator for TraceAllocator<T>
source§unsafe fn allocate(
&mut self,
allocation_requirements: AllocationRequirements
) -> Result<Allocation, AllocatorError>
unsafe fn allocate( &mut self, allocation_requirements: AllocationRequirements ) -> Result<Allocation, AllocatorError>
Allocate GPU memory based on the given requirements. Read more
source§unsafe fn free(&mut self, allocation: Allocation)
unsafe fn free(&mut self, allocation: Allocation)
Return a GPU memory allocation to the device. Read more