Expand description
StatsBump: bump arena with runtime counters for observability.
Tracks:
allocations- totalalloc_*calls served (excluding refusals).bytes_used- sum of allocationsizevalues (excludes padding).bytes_wasted- sum of alignment padding inserted between allocations.peak_bytes- high-watermark of cursor across this arena’s lifetime.chunk_count- number of distinct chunks the arena has ever opened (grows monotonically; this struct also auto-grows so the counter is meaningful).
Counters survive reset() so a long-running process can read
lifetime aggregates. clear_stats() zeros them.