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.
pub fn with_profiling<F, R>(f: F) -> (R, LeakReport)where
F: FnOnce() -> R,Run a closure with profiling enabled, returning the result and a memory report.