| 1302 | } |
| 1303 | |
| 1304 | static prof_tdata_t * |
| 1305 | prof_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 | |
| 1325 | static bool |
| 1326 | prof_dump_header_impl(tsdn_t *tsdn, bool propagate_err, |
nothing calls this directly
no test coverage detected