Expand description
Safe controls for mimalloc’s sampled heap profiler.
Structs§
- Module
Info - One loaded module (shared library or the main executable), copied out
of the OS module list by
modules. - Prof
Stats - Snapshot of
mi_prof_stats_get’s counters, translated from the raw sys struct into plain Rust types. - Sample
- One sampled call stack, copied out of the profiler by
samples.
Functions§
- dump_
file - dump_
proto_ file - Write the current heap profile to
pathinprofile.protoformat. - dump_
proto_ to_ vec - Serialize the current heap profile as a binary pprof
profile.protoProfilemessage (see google/pprof’sprofile.proto), without holding the profiler lock. - dump_
to_ vec - Serialize the current heap profile without holding the profiler lock.
- is_
enabled - modules
- Enumerate the process’s loaded modules (shared libraries and the main
executable), e.g. to build pprof
Mappingentries yourself. - reset
- samples
- Collect a point-in-time copy of every live sampled stack.
- start
- stats
- Read the profiler’s current counters via
mi_prof_stats_get. - stop