MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / prof_tdata_dump_iter

Function prof_tdata_dump_iter

deps/jemalloc/src/prof.c:1575–1594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1573}
1574
1575static prof_tdata_t *
1576prof_tdata_dump_iter(prof_tdata_tree_t *tdatas, prof_tdata_t *tdata,
1577 void *arg) {
1578 bool propagate_err = *(bool *)arg;
1579
1580 if (!tdata->dumping) {
1581 return NULL;
1582 }
1583
1584 if (prof_dump_printf(propagate_err,
1585 " t%"FMTu64": %"FMTu64": %"FMTu64" [%"FMTu64": %"FMTu64"]%s%s\n",
1586 tdata->thr_uid, tdata->cnt_summed.curobjs,
1587 tdata->cnt_summed.curbytes, tdata->cnt_summed.accumobjs,
1588 tdata->cnt_summed.accumbytes,
1589 (tdata->thread_name != NULL) ? " " : "",
1590 (tdata->thread_name != NULL) ? tdata->thread_name : "")) {
1591 return tdata;
1592 }
1593 return NULL;
1594}
1595
1596static bool
1597prof_dump_header_impl(tsdn_t *tsdn, bool propagate_err,

Callers

nothing calls this directly

Calls 1

prof_dump_printfFunction · 0.70

Tested by

no test coverage detected