pub fn measure<R>(f: impl FnOnce() -> R) -> (R, AllocStats)Expand description
Runs f and returns its result with the heap operations it performed on this thread.
pub fn measure<R>(f: impl FnOnce() -> R) -> (R, AllocStats)Runs f and returns its result with the heap operations it performed on this thread.