Skip to main content

Module memory

Module memory 

Source

Structs§

AllocatorMemorySnapshot
AllocatorPressureRelief
MemoryEstimate
A cold-path estimate of memory AFT can attribute without allocator hooks.
MemorySnapshot
ProcessMemorySnapshot
RootMemorySnapshot
SqliteMemorySnapshot

Constants§

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.roots map pushes later sections past the cut).

Functions§

estimated_json_bytes
path_bytes
usize_to_u64