Add prof stats mutex stats
This commit is contained in:
parent
9f71b5779b
commit
14d689c0f9
@ -13,7 +13,8 @@
|
||||
OP(prof_thds_data) \
|
||||
OP(prof_dump) \
|
||||
OP(prof_recent_alloc) \
|
||||
OP(prof_recent_dump)
|
||||
OP(prof_recent_dump) \
|
||||
OP(prof_stats)
|
||||
|
||||
typedef enum {
|
||||
#define OP(mtx) global_prof_mutex_##mtx,
|
||||
|
@ -1280,6 +1280,8 @@ ctl_refresh(tsdn_t *tsdn) {
|
||||
READ_GLOBAL_MUTEX_PROF_DATA(
|
||||
global_prof_mutex_prof_recent_dump,
|
||||
prof_recent_dump_mtx);
|
||||
READ_GLOBAL_MUTEX_PROF_DATA(
|
||||
global_prof_mutex_prof_stats, prof_stats_mtx);
|
||||
}
|
||||
if (have_background_thread) {
|
||||
READ_GLOBAL_MUTEX_PROF_DATA(
|
||||
@ -3395,6 +3397,7 @@ stats_mutexes_reset_ctl(tsd_t *tsd, const size_t *mib,
|
||||
MUTEX_PROF_RESET(prof_dump_mtx);
|
||||
MUTEX_PROF_RESET(prof_recent_alloc_mtx);
|
||||
MUTEX_PROF_RESET(prof_recent_dump_mtx);
|
||||
MUTEX_PROF_RESET(prof_stats_mtx);
|
||||
}
|
||||
|
||||
/* Per arena mutexes. */
|
||||
|
Loading…
Reference in New Issue
Block a user