aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Goldblatt <davidgoldblatt@fb.com>2018-03-02 15:15:19 -0800
committerDavid Goldblatt <davidtgoldblatt@gmail.com>2018-03-09 11:47:17 -0800
commit86c61d4a575e7eb57ade8a39e9d552d95c63aa31 (patch)
treef2b49e04b8f956d6c4723a6585273afeea3fb5f0 /include
parentebe0b5f8283b542f59cbe77f69e24935ebb5f866 (diff)
downloadplatform_external_jemalloc_new-86c61d4a575e7eb57ade8a39e9d552d95c63aa31.tar.gz
platform_external_jemalloc_new-86c61d4a575e7eb57ade8a39e9d552d95c63aa31.tar.bz2
platform_external_jemalloc_new-86c61d4a575e7eb57ade8a39e9d552d95c63aa31.zip
Stats printing: Move global mutex stats to use emitter.
Diffstat (limited to 'include')
-rw-r--r--include/jemalloc/internal/mutex_prof.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/jemalloc/internal/mutex_prof.h b/include/jemalloc/internal/mutex_prof.h
index 735c0adb..ce183d33 100644
--- a/include/jemalloc/internal/mutex_prof.h
+++ b/include/jemalloc/internal/mutex_prof.h
@@ -35,27 +35,27 @@ typedef enum {
mutex_prof_num_arena_mutexes
} mutex_prof_arena_ind_t;
-#define MUTEX_PROF_UINT64_COUNTERS \
- OP(num_ops, uint64_t) \
- OP(num_wait, uint64_t) \
- OP(num_spin_acq, uint64_t) \
- OP(num_owner_switch, uint64_t) \
- OP(total_wait_time, uint64_t) \
- OP(max_wait_time, uint64_t)
+#define MUTEX_PROF_UINT64_COUNTERS \
+ OP(num_ops, uint64_t, "n_lock_ops") \
+ OP(num_wait, uint64_t, "n_waiting") \
+ OP(num_spin_acq, uint64_t, "n_spin_acq") \
+ OP(num_owner_switch, uint64_t, "n_owner_switch") \
+ OP(total_wait_time, uint64_t, "total_wait_ns") \
+ OP(max_wait_time, uint64_t, "max_wait_ns")
-#define MUTEX_PROF_UINT32_COUNTERS \
- OP(max_num_thds, uint32_t)
+#define MUTEX_PROF_UINT32_COUNTERS \
+ OP(max_num_thds, uint32_t, "max_n_thds")
-#define MUTEX_PROF_COUNTERS \
- MUTEX_PROF_UINT64_COUNTERS \
+#define MUTEX_PROF_COUNTERS \
+ MUTEX_PROF_UINT64_COUNTERS \
MUTEX_PROF_UINT32_COUNTERS
-#define OP(counter, type) mutex_counter_##counter,
+#define OP(counter, type, human) mutex_counter_##counter,
-#define COUNTER_ENUM(counter_list, t) \
- typedef enum { \
- counter_list \
- mutex_prof_num_##t##_counters \
+#define COUNTER_ENUM(counter_list, t) \
+ typedef enum { \
+ counter_list \
+ mutex_prof_num_##t##_counters \
} mutex_prof_##t##_counter_ind_t;
COUNTER_ENUM(MUTEX_PROF_UINT64_COUNTERS, uint64_t)