MCPcopy Create free account
hub / github.com/F-Stack/f-stack / prof_cnt_all

Function prof_cnt_all

app/redis-6.2.6/deps/jemalloc/src/prof.c:1674–1717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1672
1673#ifdef JEMALLOC_JET
1674void
1675prof_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)

Callers 1

prof_tctx.cFile · 0.85

Calls 3

tsd_fetchFunction · 0.85
prof_dump_prepFunction · 0.85
prof_gctx_finishFunction · 0.85

Tested by

no test coverage detected