| 1672 | |
| 1673 | #ifdef JEMALLOC_JET |
| 1674 | void |
| 1675 | prof_cnt_all(uint64_t *curobjs, uint64_t *curbytes, uint64_t *accumobjs, |
| 1676 | uint64_t *accumbytes) { |
| 1677 | tsd_t *tsd; |
| 1678 | prof_tdata_t *tdata; |
| 1679 | struct prof_tdata_merge_iter_arg_s prof_tdata_merge_iter_arg; |
| 1680 | struct prof_gctx_merge_iter_arg_s prof_gctx_merge_iter_arg; |
| 1681 | prof_gctx_tree_t gctxs; |
| 1682 | |
| 1683 | tsd = tsd_fetch(); |
| 1684 | tdata = prof_tdata_get(tsd, false); |
| 1685 | if (tdata == NULL) { |
| 1686 | if (curobjs != NULL) { |
| 1687 | *curobjs = 0; |
| 1688 | } |
| 1689 | if (curbytes != NULL) { |
| 1690 | *curbytes = 0; |
| 1691 | } |
| 1692 | if (accumobjs != NULL) { |
| 1693 | *accumobjs = 0; |
| 1694 | } |
| 1695 | if (accumbytes != NULL) { |
| 1696 | *accumbytes = 0; |
| 1697 | } |
| 1698 | return; |
| 1699 | } |
| 1700 | |
| 1701 | prof_dump_prep(tsd, tdata, &prof_tdata_merge_iter_arg, |
| 1702 | &prof_gctx_merge_iter_arg, &gctxs); |
| 1703 | prof_gctx_finish(tsd, &gctxs); |
| 1704 | |
| 1705 | if (curobjs != NULL) { |
| 1706 | *curobjs = prof_tdata_merge_iter_arg.cnt_all.curobjs; |
| 1707 | } |
| 1708 | if (curbytes != NULL) { |
| 1709 | *curbytes = prof_tdata_merge_iter_arg.cnt_all.curbytes; |
| 1710 | } |
| 1711 | if (accumobjs != NULL) { |
| 1712 | *accumobjs = prof_tdata_merge_iter_arg.cnt_all.accumobjs; |
| 1713 | } |
| 1714 | if (accumbytes != NULL) { |
| 1715 | *accumbytes = prof_tdata_merge_iter_arg.cnt_all.accumbytes; |
| 1716 | } |
| 1717 | } |
| 1718 | #endif |
| 1719 | |
| 1720 | #define DUMP_FILENAME_BUFSIZE (PATH_MAX + 1) |
no test coverage detected