mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-24 16:13:38 +03:00
psset: Move in stats.
A later change will benefit from having these functions pulled into a psset-module set of functions.
This commit is contained in:
parent
d0a991d47b
commit
c1b2a77933
7 changed files with 82 additions and 63 deletions
|
|
@ -150,15 +150,7 @@ pa_shard_stats_merge(tsdn_t *tsdn, pa_shard_t *shard,
|
|||
}
|
||||
|
||||
if (shard->ever_used_hpa) {
|
||||
malloc_mutex_lock(tsdn, &shard->hpa_shard.mtx);
|
||||
psset_bin_stats_accum(&hpa_stats_out->psset_full_slab_stats,
|
||||
&shard->hpa_shard.psset.full_slab_stats);
|
||||
for (pszind_t i = 0; i < PSSET_NPSIZES; i++) {
|
||||
psset_bin_stats_accum(
|
||||
&hpa_stats_out->psset_slab_stats[i],
|
||||
&shard->hpa_shard.psset.slab_stats[i]);
|
||||
}
|
||||
malloc_mutex_unlock(tsdn, &shard->hpa_shard.mtx);
|
||||
hpa_stats_merge(tsdn, &shard->hpa_shard, hpa_stats_out);
|
||||
sec_stats_merge(tsdn, &shard->hpa_sec, sec_stats_out);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue