diff options
author | Qi Wang <interwq@gwu.edu> | 2017-08-25 20:24:49 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2017-08-30 23:47:32 (GMT) |
commit | e55c3ca26758bcb7f6f1621fd690caa245f16942 (patch) | |
tree | c6417b9418237c31395eb814a88f52d0ce7a478c /src/arena.c | |
parent | 47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff (diff) | |
download | jemalloc-e55c3ca26758bcb7f6f1621fd690caa245f16942.zip jemalloc-e55c3ca26758bcb7f6f1621fd690caa245f16942.tar.gz jemalloc-e55c3ca26758bcb7f6f1621fd690caa245f16942.tar.bz2 |
Add stats for metadata_thp.
Report number of THPs used in arena and aggregated stats.
Diffstat (limited to 'src/arena.c')
-rw-r--r-- | src/arena.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arena.c b/src/arena.c index 19aafaf..18ed5aa 100644 --- a/src/arena.c +++ b/src/arena.c @@ -234,9 +234,9 @@ arena_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads, arena_basic_stats_merge(tsdn, arena, nthreads, dss, dirty_decay_ms, muzzy_decay_ms, nactive, ndirty, nmuzzy); - size_t base_allocated, base_resident, base_mapped; + size_t base_allocated, base_resident, base_mapped, metadata_thp; base_stats_get(tsdn, arena->base, &base_allocated, &base_resident, - &base_mapped); + &base_mapped, &metadata_thp); arena_stats_lock(tsdn, &arena->stats); @@ -267,6 +267,7 @@ arena_stats_merge(tsdn_t *tsdn, arena_t *arena, unsigned *nthreads, arena_stats_accum_zu(&astats->base, base_allocated); arena_stats_accum_zu(&astats->internal, arena_internal_get(arena)); + arena_stats_accum_zu(&astats->metadata_thp, metadata_thp); arena_stats_accum_zu(&astats->resident, base_resident + (((atomic_load_zu(&arena->nactive, ATOMIC_RELAXED) + extents_npages_get(&arena->extents_dirty) + |