Skip to content

allocation_statistics.hpp

Ludus Wiki · API overview · Browse API

File

Opt-in queries for allocation-domain counters, the domain registry and coverage.
Counters are relaxed atomic samples while allocations continue: a query is not a transaction across fields or domains. Exact reconciliation needs a caller-established quiescent boundary on every domain read. Per-domain peaks are histories of one domain's requested bytes; never sum them into a process peak. Contracts: docs/architecture/memory-profiling.md ("Questions and metric contracts") and docs/development/memory-phase-1.md.

Declared in modules/foundation/memory/include/ludus/foundation/memory/allocation_statistics.hpp