Skip to main content

Module alloc

Module alloc 

Source

Statics§

ALLOC_BYTES
ALLOC_COUNT
Counters for the optional allocation tracker. Only active when the count_alloc feature is enabled. The global allocator below bumps these on every heap allocation, so a hot-path iteration that stays at zero proves the zero-allocation guarantee.

Functions§

counters
Read the current counters.
reset_counters
Reset the counters to zero. Call before a measurement window.