pub fn set_panic_on_alloc(panic: bool)
Set whether to panic on hot path allocation.
When false, allocations are counted but don’t panic. Useful for collecting stats without crashing.