Report E/e option state in jemalloc_stats_print().
This commit is contained in:
parent
ec5344eba2
commit
fd88bd577e
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user