Skip to main content

peak_held

Function peak_held 

Source
pub fn peak_held<R>(f: impl FnOnce() -> R) -> (R, usize)
Expand description

What f gives, and the most bytes that the process held at once in large allocations while f ran, beyond what it held when f started. Allocations on other threads count too. A binary that doesn’t register the guard counts nothing, and gets 0.