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.
Constants§
- Used to prevent re-entrancy when tracking allocations.
- Allocations smaller than are stochastically sampled.
- Only track allocations of at least this size.
Statics§
- Statistics about extant allocations larger than
MEDIUM_SIZE
. - 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?
- 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.