Report E/e option state in jemalloc_stats_print().

This commit is contained in:
Jason Evans 2010-04-06 12:20:23 -07:00
parent ec5344eba2
commit fd88bd577e
2 changed files with 6 additions and 3 deletions

View File

@ -45,8 +45,8 @@ any of the following arguments (not a definitive list) to 'configure':
detailed allocation statistics at exit. detailed allocation statistics at exit.
--enable-prof --enable-prof
Enable heap profiling and leak detection functionality. Use the 'B', 'F', Enable heap profiling and leak detection functionality. Use the 'B', 'E',
'I', 'L', and 'U' options to control these features. 'F', 'I', 'L', and 'U' options to control these features.
--disable-prof-libgcc --disable-prof-libgcc
Disable the use of libgcc's backtracing functionality. Ordinarily, libgcc's Disable the use of libgcc's backtracing functionality. Ordinarily, libgcc's

View File

@ -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)) if ((err = JEMALLOC_P(mallctl)("opt.abort", &bv, &bsz, NULL, 0))
== 0) == 0)
write_cb(cbopaque, bv ? "A" : "a"); 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)) if ((err = JEMALLOC_P(mallctl)("opt.prof", &bv, &bsz, NULL, 0))
== 0) == 0)
write_cb(cbopaque, bv ? "F" : "f"); write_cb(cbopaque, bv ? "F" : "f");
if ((err = JEMALLOC_P(mallctl)("opt.tcache", &bv, &bsz, NULL, if ((err = JEMALLOC_P(mallctl)("opt.tcache", &bv, &bsz, NULL,
0)) == 0) 0)) == 0)