| 1323 | } |
| 1324 | |
| 1325 | static bool |
| 1326 | prof_dump_header_impl(tsdn_t *tsdn, bool propagate_err, |
| 1327 | const prof_cnt_t *cnt_all) { |
| 1328 | bool ret; |
| 1329 | |
| 1330 | if (prof_dump_printf(propagate_err, |
| 1331 | "heap_v2/%"FMTu64"\n" |
| 1332 | " t*: %"FMTu64": %"FMTu64" [%"FMTu64": %"FMTu64"]\n", |
| 1333 | ((uint64_t)1U << lg_prof_sample), cnt_all->curobjs, |
| 1334 | cnt_all->curbytes, cnt_all->accumobjs, cnt_all->accumbytes)) { |
| 1335 | return true; |
| 1336 | } |
| 1337 | |
| 1338 | malloc_mutex_lock(tsdn, &tdatas_mtx); |
| 1339 | ret = (tdata_tree_iter(&tdatas, NULL, prof_tdata_dump_iter, |
| 1340 | (void *)&propagate_err) != NULL); |
| 1341 | malloc_mutex_unlock(tsdn, &tdatas_mtx); |
| 1342 | return ret; |
| 1343 | } |
| 1344 | prof_dump_header_t *JET_MUTABLE prof_dump_header = prof_dump_header_impl; |
| 1345 | |
| 1346 | static bool |
nothing calls this directly
no test coverage detected