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

Function prof_tdata_dump_iter

deps/memkind/src/jemalloc/src/prof.c:1304–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1302}
1303
1304static prof_tdata_t *
1305prof_tdata_dump_iter(prof_tdata_tree_t *tdatas, prof_tdata_t *tdata,
1306 void *arg) {
1307 bool propagate_err = *(bool *)arg;
1308
1309 if (!tdata->dumping) {
1310 return NULL;
1311 }
1312
1313 if (prof_dump_printf(propagate_err,
1314 " t%"FMTu64": %"FMTu64": %"FMTu64" [%"FMTu64": %"FMTu64"]%s%s\n",
1315 tdata->thr_uid, tdata->cnt_summed.curobjs,
1316 tdata->cnt_summed.curbytes, tdata->cnt_summed.accumobjs,
1317 tdata->cnt_summed.accumbytes,
1318 (tdata->thread_name != NULL) ? " " : "",
1319 (tdata->thread_name != NULL) ? tdata->thread_name : "")) {
1320 return tdata;
1321 }
1322 return NULL;
1323}
1324
1325static bool
1326prof_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