MCPcopy Create free account
hub / github.com/ElementsProject/elements / stats

Method stats

src/support/lockedpool.cpp:133–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133Arena::Stats Arena::stats() const
134{
135 Arena::Stats r{ 0, 0, 0, chunks_used.size(), chunks_free.size() };
136 for (const auto& chunk: chunks_used)
137 r.used += chunk.second;
138 for (const auto& chunk: chunks_free)
139 r.free += chunk.second->first;
140 r.total = r.used + r.free;
141 return r;
142}
143
144#ifdef ARENA_DEBUG
145static void printchunk(void* base, size_t sz, bool used) {

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.80
RPCLockedMemoryInfoFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64