enable static method
void
enable()
Enables tracking native memory allocations globally.
When enabled, allocators (adaptiveCalloc, adaptiveMalloc, diagnosticCalloc, diagnosticMalloc) record allocation metadata that can later be inspected or emitted.
Recorded metadata includes the allocation address, size, type, timestamp, and call stack at the point of allocation.
Has no effect if leak tracking is already enabled. Call disable to stop tracking.
Implementation
static void enable() => _enabled = true;