summaryrefslogtreecommitdiffstats
path: root/src/prof.c
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2017-03-12 04:28:31 (GMT)
committerQi Wang <interwq@gmail.com>2017-03-23 07:03:28 (GMT)
commitca9074deffe799dafa74a1d71333a103c4c007ce (patch)
tree4305be02b5c5f5cdcbea31759953d6c075f4b2c6 /src/prof.c
parent0fb5c0e853963480196ac413db18d1ad78d87ec9 (diff)
downloadjemalloc-ca9074deffe799dafa74a1d71333a103c4c007ce.zip
jemalloc-ca9074deffe799dafa74a1d71333a103c4c007ce.tar.gz
jemalloc-ca9074deffe799dafa74a1d71333a103c4c007ce.tar.bz2
Added lock profiling and output for global locks (ctl, prof and base).
Diffstat (limited to 'src/prof.c')
-rw-r--r--src/prof.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/prof.c b/src/prof.c
index b04984b..4e83ae3 100644
--- a/src/prof.c
+++ b/src/prof.c
@@ -78,7 +78,8 @@ static malloc_mutex_t *tdata_locks;
* structure that knows about all backtraces currently captured.
*/
static ckh_t bt2gctx;
-static malloc_mutex_t bt2gctx_mtx;
+/* Non static to enable profiling. */
+malloc_mutex_t bt2gctx_mtx;
/*
* Tree of all extant prof_tdata_t structures, regardless of state,