Skip to main content

MALLOC_CONF

Static MALLOC_CONF 

Source
#[unsafe(export_name = "_rjem_malloc_conf")]
pub(crate) static MALLOC_CONF: &[u8]
Available on crate feature jemalloc-prof and Unix only.
Expand description

Compile-time jemalloc configuration for heap profiling.

tikv-jemallocator uses prefixed symbols, so the runtime MALLOC_CONF env var is ignored. This exported symbol is read by jemalloc at init time to enable profiling unconditionally when the jemalloc-prof feature is active.

See https://github.com/jemalloc/jemalloc/wiki/Getting-Started