From fd88bd577ef23b1580f19dd82b810a66ec2230cd Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Tue, 6 Apr 2010 12:20:23 -0700 Subject: [PATCH] Report E/e option state in jemalloc_stats_print(). --- jemalloc/INSTALL | 4 ++-- jemalloc/src/stats.c | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/jemalloc/INSTALL b/jemalloc/INSTALL index 7ce7e793..96dfae23 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 60e75bc5..0c3b8f26 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)