pub struct ProfilingAllocator;Expand description
A profiling allocator that wraps the system allocator.
When the heap feature is enabled, this allocator captures
allocation and deallocation events along with stack traces.
When disabled, it’s a zero-cost passthrough to the system allocator.
Trait Implementations§
Source§impl GlobalAlloc for ProfilingAllocator
impl GlobalAlloc for ProfilingAllocator
Source§unsafe fn alloc(&self, layout: Layout) -> *mut u8
unsafe fn alloc(&self, layout: Layout) -> *mut u8
Allocates memory as described by the given
layout. Read moreAuto Trait Implementations§
impl Freeze for ProfilingAllocator
impl RefUnwindSafe for ProfilingAllocator
impl Send for ProfilingAllocator
impl Sync for ProfilingAllocator
impl Unpin for ProfilingAllocator
impl UnwindSafe for ProfilingAllocator
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