[][src]Trait interloc::AllocMonitor

pub trait AllocMonitor {
    fn monitor(&self, layout: Layout, act: AllocAction);
}

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.

Loading content...

Implementors

impl AllocMonitor for StatsMonitor[src]

impl AllocMonitor for ThreadMonitor[src]

Loading content...