mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-25 08:33:38 +03:00
PA: Move in basic stats merging.
This commit is contained in:
parent
f29f6090f5
commit
506d907e40
3 changed files with 12 additions and 3 deletions
|
|
@ -71,9 +71,7 @@ arena_basic_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads,
|
|||
*dss = dss_prec_names[arena_dss_prec_get(arena)];
|
||||
*dirty_decay_ms = arena_dirty_decay_ms_get(arena);
|
||||
*muzzy_decay_ms = arena_muzzy_decay_ms_get(arena);
|
||||
*nactive += atomic_load_zu(&arena->pa_shard.nactive, ATOMIC_RELAXED);
|
||||
*ndirty += ecache_npages_get(&arena->pa_shard.ecache_dirty);
|
||||
*nmuzzy += ecache_npages_get(&arena->pa_shard.ecache_muzzy);
|
||||
pa_shard_basic_stats_merge(&arena->pa_shard, nactive, ndirty, nmuzzy);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue