diff options
| author | Jason Evans <jasone@canonware.com> | 2015-09-25 03:07:17 (GMT) |
|---|---|---|
| committer | Jason Evans <jasone@canonware.com> | 2015-09-25 03:07:17 (GMT) |
| commit | e9192eacf8935e29fc62fddc2701f7942b1cc02c (patch) | |
| tree | d20a95d9c02f1135e4352be0752372a8fc6073eb /src/prof.c | |
| parent | 486d249fb4715fd3de679b6c2a04f7e657883111 (diff) | |
| parent | 02709688e09325026be402b63400f88e587293d7 (diff) | |
| download | jemalloc-4.0.3.zip jemalloc-4.0.3.tar.gz jemalloc-4.0.3.tar.bz2 | |
Merge branch 'dev'4.0.3
Diffstat (limited to 'src/prof.c')
| -rw-r--r-- | src/prof.c | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -1102,11 +1102,23 @@ prof_tctx_dump_iter(prof_tctx_tree_t *tctxs, prof_tctx_t *tctx, void *arg) { bool propagate_err = *(bool *)arg; - if (prof_dump_printf(propagate_err, - " t%"FMTu64": %"FMTu64": %"FMTu64" [%"FMTu64": %"FMTu64"]\n", - tctx->thr_uid, tctx->dump_cnts.curobjs, tctx->dump_cnts.curbytes, - tctx->dump_cnts.accumobjs, tctx->dump_cnts.accumbytes)) - return (tctx); + switch (tctx->state) { + case prof_tctx_state_initializing: + case prof_tctx_state_nominal: + /* Not captured by this dump. */ + break; + case prof_tctx_state_dumping: + case prof_tctx_state_purgatory: + if (prof_dump_printf(propagate_err, + " t%"FMTu64": %"FMTu64": %"FMTu64" [%"FMTu64": " + "%"FMTu64"]\n", tctx->thr_uid, tctx->dump_cnts.curobjs, + tctx->dump_cnts.curbytes, tctx->dump_cnts.accumobjs, + tctx->dump_cnts.accumbytes)) + return (tctx); + break; + default: + not_reached(); + } return (NULL); } |
