mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 17:13:35 +03:00
Add stats for the size of extent_avail heap
This commit is contained in:
parent
c14e6c0819
commit
126252a7e6
7 changed files with 31 additions and 1 deletions
|
|
@ -100,6 +100,10 @@ arena_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads,
|
|||
arena_stats_accum_zu(&astats->retained,
|
||||
extents_npages_get(&arena->extents_retained) << LG_PAGE);
|
||||
|
||||
atomic_store_zu(&astats->extent_avail,
|
||||
atomic_load_zu(&arena->extent_avail_cnt, ATOMIC_RELAXED),
|
||||
ATOMIC_RELAXED);
|
||||
|
||||
arena_stats_accum_u64(&astats->decay_dirty.npurge,
|
||||
arena_stats_read_u64(tsdn, &arena->stats,
|
||||
&arena->stats.decay_dirty.npurge));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue