summaryrefslogtreecommitdiff
path: root/include/jemalloc/internal/base_structs.h
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-08-25 13:24:49 -0700
committerQi Wang <interwq@gmail.com>2017-08-30 16:47:32 -0700
commite55c3ca26758bcb7f6f1621fd690caa245f16942 (patch)
treec6417b9418237c31395eb814a88f52d0ce7a478c /include/jemalloc/internal/base_structs.h
parent47b20bb6544de9cdd4ca7ab870d6ad257c0ce4ff (diff)
Add stats for metadata_thp.
Report number of THPs used in arena and aggregated stats.
Diffstat (limited to 'include/jemalloc/internal/base_structs.h')
-rw-r--r--include/jemalloc/internal/base_structs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/jemalloc/internal/base_structs.h b/include/jemalloc/internal/base_structs.h
index 18e227bd..b5421693 100644
--- a/include/jemalloc/internal/base_structs.h
+++ b/include/jemalloc/internal/base_structs.h
@@ -50,6 +50,8 @@ struct base_s {
size_t allocated;
size_t resident;
size_t mapped;
+ /* Number of THP regions touched. */
+ size_t n_thp;
};
#endif /* JEMALLOC_INTERNAL_BASE_STRUCTS_H */