MCPcopy Create free account
hub / github.com/Restream/reindexer / get_alloc_cnt_total

Function get_alloc_cnt_total

cpp_src/debug/allocdebug.cc:89–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87size_t get_alloc_cnt() { return ismt ? tracer_mt.alloced_cnt.load() : tracer.alloced_cnt; }
88size_t get_alloc_size_total() { return ismt ? tracer_mt.alloced_sz_total.load() : tracer.alloced_sz_total; }
89size_t get_alloc_cnt_total() { return ismt ? tracer_mt.alloced_cnt_total.load() : tracer.alloced_cnt_total; }
90
91void allocdebug_show() {
92 logFmt(LogInfo, "meminfo (alloced {}M, {} total allocs, {} remain)", get_alloc_size() / (1024 * 1024), get_alloc_cnt_total(),

Callers 4

AllocsTrackerMethod · 0.85
~AllocsTrackerMethod · 0.85
GetCurrentAllocCountMethod · 0.85
allocdebug_showFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected