pub fn write_pprof(path: impl AsRef<Path>) -> Result<usize, DumpError>Expand description
Writes the heap profile to path; returns its size in bytes
ยงErrors
DumpError::NotActivated when profiling was never activated, and
DumpError::Io when the file cannot be written.