Used in unit tests. */
| 1122 | |
| 1123 | /* Used in unit tests. */ |
| 1124 | void |
| 1125 | prof_cnt_all(prof_cnt_t *cnt_all) { |
| 1126 | tsd_t *tsd = tsd_fetch(); |
| 1127 | prof_tdata_t *tdata = prof_tdata_get(tsd, false); |
| 1128 | if (tdata == NULL) { |
| 1129 | memset(cnt_all, 0, sizeof(prof_cnt_t)); |
| 1130 | } else { |
| 1131 | size_t leak_ngctx; |
| 1132 | prof_gctx_tree_t gctxs; |
| 1133 | prof_dump_prep(tsd, tdata, cnt_all, &leak_ngctx, &gctxs); |
| 1134 | prof_gctx_finish(tsd, &gctxs); |
| 1135 | } |
| 1136 | } |
| 1137 | |
| 1138 | void |
| 1139 | prof_bt_hash(const void *key, size_t r_hash[2]) { |
nothing calls this directly
no test coverage detected