diff options
Diffstat (limited to 'jemalloc/src/ctl.c')
-rw-r--r-- | jemalloc/src/ctl.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/jemalloc/src/ctl.c b/jemalloc/src/ctl.c index edbbb20..dbc5cd4 100644 --- a/jemalloc/src/ctl.c +++ b/jemalloc/src/ctl.c @@ -42,6 +42,10 @@ CTL_PROTO(epoch) CTL_PROTO(tcache_flush) #endif CTL_PROTO(thread_arena) +#ifdef JEMALLOC_STATS +CTL_PROTO(thread_allocated) +CTL_PROTO(thread_deallocated) +#endif CTL_PROTO(config_debug) CTL_PROTO(config_dss) CTL_PROTO(config_dynamic_page_shift) @@ -216,6 +220,11 @@ static const ctl_node_t tcache_node[] = { static const ctl_node_t thread_node[] = { {NAME("arena"), CTL(thread_arena)} +#ifdef JEMALLOC_STATS + , + {NAME("allocated"), CTL(thread_allocated)}, + {NAME("deallocated"), CTL(thread_deallocated)} +#endif }; static const ctl_node_t config_node[] = { @@ -1092,6 +1101,11 @@ RETURN: return (ret); } +#ifdef JEMALLOC_STATS +CTL_RO_GEN(thread_allocated, ALLOCATED_GET(), uint64_t); +CTL_RO_GEN(thread_deallocated, DEALLOCATED_GET(), uint64_t); +#endif + /******************************************************************************/ #ifdef JEMALLOC_DEBUG |