MCPcopy Create free account
hub / github.com/beefytech/Beef / prof_cnt_all

Function prof_cnt_all

BeefRT/JEMalloc/src/prof_data.c:1124–1136  ·  view source on GitHub ↗

Used in unit tests. */

Source from the content-addressed store, hash-verified

1122
1123/* Used in unit tests. */
1124void
1125prof_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
1138void
1139prof_bt_hash(const void *key, size_t r_hash[2]) {

Callers

nothing calls this directly

Calls 3

tsd_fetchFunction · 0.85
prof_dump_prepFunction · 0.85
prof_gctx_finishFunction · 0.85

Tested by

no test coverage detected