summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Evans <je@facebook.com>2010-04-06 19:20:23 (GMT)
committerJason Evans <je@facebook.com>2010-04-06 19:20:23 (GMT)
commitfd88bd577ef23b1580f19dd82b810a66ec2230cd (patch)
tree65b9b88c206cee9ba51c083344046f2fbac9e2f5
parentec5344eba282b2bc2f854bdb174e3c97abff83c9 (diff)
downloadjemalloc-fd88bd577ef23b1580f19dd82b810a66ec2230cd.zip
jemalloc-fd88bd577ef23b1580f19dd82b810a66ec2230cd.tar.gz
jemalloc-fd88bd577ef23b1580f19dd82b810a66ec2230cd.tar.bz2
Report E/e option state in jemalloc_stats_print().
-rw-r--r--jemalloc/INSTALL4
-rw-r--r--jemalloc/src/stats.c5
2 files changed, 6 insertions, 3 deletions
diff --git a/jemalloc/INSTALL b/jemalloc/INSTALL
index 7ce7e79..96dfae2 100644
--- a/jemalloc/INSTALL
+++ b/jemalloc/INSTALL
@@ -45,8 +45,8 @@ any of the following arguments (not a definitive list) to 'configure':
detailed allocation statistics at exit.
--enable-prof
- Enable heap profiling and leak detection functionality. Use the 'B', 'F',
- 'I', 'L', and 'U' options to control these features.
+ Enable heap profiling and leak detection functionality. Use the 'B', 'E',
+ 'F', 'I', 'L', and 'U' options to control these features.
--disable-prof-libgcc
Disable the use of libgcc's backtracing functionality. Ordinarily, libgcc's
diff --git a/jemalloc/src/stats.c b/jemalloc/src/stats.c
index 60e75bc..0c3b8f2 100644
--- a/jemalloc/src/stats.c
+++ b/jemalloc/src/stats.c
@@ -448,8 +448,11 @@ stats_print(void (*write_cb)(void *, const char *), void *cbopaque,
if ((err = JEMALLOC_P(mallctl)("opt.abort", &bv, &bsz, NULL, 0))
== 0)
write_cb(cbopaque, bv ? "A" : "a");
+ if ((err = JEMALLOC_P(mallctl)("prof.active", &bv, &bsz,
+ NULL, 0)) == 0)
+ write_cb(cbopaque, bv ? "E" : "e");
if ((err = JEMALLOC_P(mallctl)("opt.prof", &bv, &bsz, NULL, 0))
- == 0)
+ == 0)
write_cb(cbopaque, bv ? "F" : "f");
if ((err = JEMALLOC_P(mallctl)("opt.tcache", &bv, &bsz, NULL,
0)) == 0)