Skip to main content

set_enabled

Function set_enabled 

Source
pub fn set_enabled(enabled: bool) -> bool
Expand description

Enable or disable tracking; returns the previous state.

An explicit call is always authoritative over the MIMALLOC_MEMORY_EVENTS environment read: called before the first allocation it replaces that read; called after, it overrides the cached flag. Re-enabling does not reconstruct what happened while tracking was off.