add arena_purges stat

This commit is contained in:
Daan Leijen 2025-03-02 16:36:16 -08:00
parent c910750bbe
commit 4f1edad4fe
5 changed files with 10 additions and 4 deletions

View file

@ -550,7 +550,8 @@ static bool mi_arena_try_purge(mi_arena_t* arena, mi_msecs_t now, bool force)
// reset expire (if not already set concurrently)
mi_atomic_casi64_strong_acq_rel(&arena->purge_expire, &expire, (mi_msecs_t)0);
_mi_stat_counter_increase(&_mi_stats_main.arena_purges, 1);
// potential purges scheduled, walk through the bitmap
bool any_purged = false;
bool full_purge = true;