Skip to main content
Module alloc
scx_
mlfq
1.3.12
Module alloc
Module Items
Re-exports
Statics
Functions
In crate scx_
mlfq
scx_mlfq
Module
alloc
Copy item path
Source
Re-exports
§
use std::sync::atomic::
AtomicUsize
;
🔒
use std::sync::atomic::
Ordering
;
🔒
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.