Skip to main content

Module sys

Module sys 

Source
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’s MI_PROF_CONFIG_FALLBACK / MI_PROF_CONFIG_OVERRIDE (include/mimalloc/profile.h).
MI_PROF_CONFIG_OVERRIDE
MI_PROF_CONFIG_VERSION
Mirrors MI_PROF_CONFIG_VERSION in include/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_VERSION in include/mimalloc/profile.h.

Functions§

mi_calloc
mi_expand
Grow in place only; returns NULL if the block cannot be extended without moving.
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_writer but 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 (and info->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_recalloc
mi_recalloc_aligned
mi_rezalloc
mi_rezalloc_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 hooked mi_malloc family. 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

Type Aliases§

MiProfWriteFun
mi_prof_module_visit_fun
mi_prof_visit_fun