Commit Graph

1 Commits

Author SHA1 Message Date
73640284b1 Phase 4d: Add master stats control (HAKMEM_STATS)
Add unified stats/dump control that allows enabling specific stats
modules using comma-separated values or "all" to enable everything.

New file: core/hakmem_stats_master.h
- HAKMEM_STATS=all: Enable all stats modules
- HAKMEM_STATS=sfc,fast,pool: Enable specific modules
- HAKMEM_STATS_DUMP=1: Dump stats at exit
- hak_stats_check(): Check if module should enable stats

Available stats modules:
  sfc, fast, heap, refill, counters, ring, invariant,
  pagefault, front, pool, slim, guard, nearempty

Updated files:
- core/hakmem_tiny_sfc.c: Use hak_stats_check() for SFC stats
- core/hakmem_shared_pool.c: Use hak_stats_check() for pool stats

Performance: No regression (72.9M ops/s)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 16:11:15 +09:00