Module re_memory::accounting_allocator
source ยท Expand description
Track allocations and memory use.
Structsยง
- Install this as the global allocator to get memory usage tracking.
- AtomicCountAndSize ๐
- GlobalStats ๐
Constantsยง
- Used to prevent re-entrancy when tracking allocations.
- MAX_CALLSTACKS ๐
- MEDIUM_SIZE ๐Allocations smaller than are stochastically sampled.
- SMALL_SIZE ๐Only track allocations of at least this size.
Staticsยง
- Statistics about extant allocations larger than
MEDIUM_SIZE
. - GLOBAL_STATS ๐
- Statistics about some extant allocations larger than
SMALL_SIZE
but smaller thanMEDIUM_SIZE
.
Functionsยง
- Total number of live allocations, and the number of live bytes allocated as tracked by
AccountingAllocator
. - Are we doing (slightly expensive) tracking of the callstacks of large allocations?
- note_alloc ๐
- note_dealloc ๐
- Should we do (slightly expensive) tracking of the callstacks of large allocations?
- Gather statistics from the live tracking, if enabled.
- Turn on callstack tracking (slightly expensive) if a given env-var is set.