pub type MemHook = fn() -> (usize, usize);Expand description
Optional memory reporter, registered by profiling harnesses (e.g. the mem_profile example’s counting allocator). Returns (current bytes, peak bytes since the previous call) — the implementation resets its peak watermark on read so each stage line reports that stage’s own peak.