Skip to main content

measure

Function measure 

Source
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.