[−][src]Trait interloc::AllocMonitor
When attached to an InterAlloc
instance, this struct's monitor
method
is called before and after calls to the inner allocator. The ordering of
these method calls is enforced by std::sync::atomic::fence
with std::sync::atomic::Ordering::SeqCst
.
Required methods
fn monitor(&self, layout: Layout, act: AllocAction)
The api to the monitor. This method is called right before and right after allocations happen.