MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / prof_dump_header_impl

Function prof_dump_header_impl

deps/memkind/src/jemalloc/src/prof.c:1325–1343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1323}
1324
1325static bool
1326prof_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}
1344prof_dump_header_t *JET_MUTABLE prof_dump_header = prof_dump_header_impl;
1345
1346static bool

Callers

nothing calls this directly

Calls 3

prof_dump_printfFunction · 0.70
malloc_mutex_lockFunction · 0.50
malloc_mutex_unlockFunction · 0.50

Tested by

no test coverage detected