Structs§
- Allocator
Memory Snapshot - Allocator
Pressure Relief - Memory
Estimate - A cold-path estimate of memory AFT can attribute without allocator hooks.
- Memory
Snapshot - Process
Memory Snapshot - Root
Memory Snapshot - Sqlite
Memory Snapshot
Enums§
Constants§
- ALLOCATOR_
SLACK_ RELIEF_ MIN_ INTERVAL - Minimum spacing between opportunistic relief passes so a workload that legitimately cycles through large allocations does not thrash the allocator.
- ALLOCATOR_
SLACK_ RELIEF_ THRESHOLD_ BYTES - Allocator slack (mapped-but-unused arena bytes) above which opportunistic pressure relief is worth the zone-lock contention it briefly causes.
- MEMORY_
SNAPSHOT_ ROOT_ DETAIL_ CAP - Cap on per-root detail entries in serialized snapshots. Process totals
always cover every root; only the per-root breakdown is capped so a
many-root daemon process cannot balloon the status payload past
downstream consumers’ size limits (the daemon metrics cache truncates
around 27 KB, and JSON keys serialize alphabetically, so an oversized
memory.rootsmap pushes later sections past the cut).
Functions§
- allocator_
slack_ relief_ due - Decide whether an opportunistic allocator relief pass is due.
- cached_
allocator_ observation - Return the last process-wide allocator observation without walking allocator zones. The observation timestamp is separate from the sampler reservation so a status request never mistakes an in-progress sample for a fresh reading.
- estimated_
json_ bytes - last_
allocator_ relief_ at_ ms - last_
allocator_ relief_ freed_ bytes - path_
bytes - relieve_
allocator_ pressure - spawn_
allocator_ slack_ relief_ if_ due - Opportunistically return unused allocator pages without reading allocator statistics on the module loop. The loop only reads cached atomics. When the cached observation is stale, one sampler takes an initial snapshot; if it finds enough slack, the page-return operation reuses it and takes only one additional after snapshot, limiting the pass to two statistics walks.
- usize_
to_ u64