Expand description
Raw bindings to the in-tree mimalloc static amalgamation.
Structs§
- mi_
prof_ config_ t - Mirrors
mi_prof_config_t(include/mimalloc/profile.h) field-for-field. - mi_
prof_ module_ info_ t - Mirrors
mi_prof_module_info_t(include/mimalloc/profile.h) field-for-field. - mi_
prof_ sample_ info_ t - Mirrors
mi_prof_sample_info_t(include/mimalloc/profile.h) field-for-field. - mi_
prof_ stats_ t - Mirrors
mi_prof_stats_t(include/mimalloc/profile.h) field-for-field.
Enums§
- mi_
prof_ snapshot_ t - Opaque handle for
mi_prof_snapshot_t; the profiler never hands out a value, only a pointer, so this type is never constructed on the Rust side.
Constants§
- MI_
PROF_ CONFIG_ FALLBACK - Mirrors
mi_prof_config_mode_t’sMI_PROF_CONFIG_FALLBACK/MI_PROF_CONFIG_OVERRIDE(include/mimalloc/profile.h). - MI_
PROF_ CONFIG_ OVERRIDE - MI_
PROF_ CONFIG_ VERSION - Mirrors
MI_PROF_CONFIG_VERSIONininclude/mimalloc/profile.h. - MI_
PROF_ FORMAT_ PROTO - MI_
PROF_ FORMAT_ TEXT - Mirrors
MI_PROF_FORMAT_TEXT/MI_PROF_FORMAT_PROTO(include/mimalloc/profile.h). - MI_
PROF_ STAT_ VERSION - Mirrors
MI_PROF_STAT_VERSIONininclude/mimalloc/profile.h.
Functions§
- mi_
calloc ⚠ - mi_free⚠
- mi_
malloc ⚠ - mi_
malloc_ ⚠aligned - mi_
prof_ ⚠debug_ stats - mi_
prof_ ⚠dump - mi_
prof_ ⚠dump_ proto - profile.proto (google/pprof) writer: same sample/period/mapping semantics as
mi_prof_dump/mi_prof_dump_writerbut encoded as an uncompressed, binary pprof Profile message instead of the legacy “heap profile:” text. - mi_
prof_ ⚠dump_ proto_ writer - mi_
prof_ ⚠dump_ writer - mi_
prof_ ⚠is_ enabled - mi_
prof_ ⚠modules_ visit - Structured module (mapping) enumeration, e.g. to build pprof Mapping entries
yourself. No profiler lock is taken: module lists are OS-owned, not part of
the sampled-allocation table.
info(andinfo->path) are valid only for the duration of the callback. - mi_
prof_ ⚠reset - mi_
prof_ ⚠snapshot_ free - mi_
prof_ ⚠snapshot_ new - mi_
prof_ ⚠snapshot_ visit - mi_
prof_ ⚠start - mi_
prof_ ⚠start_ ex - mi_
prof_ ⚠start_ seeded - mi_
prof_ ⚠stats_ get - mi_
prof_ ⚠stop - mi_
prof_ ⚠visit - mi_
realloc ⚠ - mi_
realloc_ ⚠aligned - mi_
unwrapped_ ⚠free - Mirrors
mi_unwrapped_free(include/mimalloc/memory-events.h). - mi_
unwrapped_ ⚠malloc - Mirrors
mi_unwrapped_malloc(include/mimalloc/memory-events.h): backed directly by the raw OS layer, never by the hookedmi_mallocfamily. See that header’s “Stable public unwrapped instrumentation allocation path” comment for the full contract. - mi_
unwrapped_ ⚠realloc - Mirrors
mi_unwrapped_realloc(include/mimalloc/memory-events.h). - mi_
usable_ ⚠size - mi_
zalloc ⚠ - mi_
zalloc_ ⚠aligned