Trait tracking_allocator::AllocationTracker [−][src]
pub trait AllocationTracker {
fn allocated(
&self,
addr: usize,
size: usize,
group_id: usize,
tags: Option<&'static [(&'static str, &'static str)]>
);
fn deallocated(&self, addr: usize);
}Expand description
Tracks allocations and deallocations.
Required methods
Tracks when an allocation has occurred.
If any tags were associated with the allocation group, they will be provided.
fn deallocated(&self, addr: usize)
fn deallocated(&self, addr: usize)
Tracks when a deallocation has occurred.