pub fn modules() -> Vec<ModuleInfo>Expand description
Enumerate the process’s loaded modules (shared libraries and the main
executable), e.g. to build pprof Mapping entries yourself.
Unlike samples’s collect_visitor, this callback is free to
allocate: mi_prof_modules_visit never takes the profiler lock (the
module list is OS-owned, not part of the sampled-allocation table), so
there is no reentrant-allocation-under-the-lock hazard here.