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
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.
- estimated_
json_ bytes - path_
bytes - usize_
to_ u64