with_profiling

Function with_profiling 

Source
pub fn with_profiling<F, R>(f: F) -> (R, LeakReport)
where F: FnOnce() -> R,
Expand description

Run a closure with profiling enabled, returning the result and a memory report.