MCPcopy Create free account
hub / github.com/facebook/CacheLib / totalFragmentation

Method totalFragmentation

cachelib/allocator/CacheStats.cpp:404–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404uint64_t PoolStats::totalFragmentation() const {
405 uint64_t n = 0;
406 for (const auto& s : cacheStats) {
407 n += s.second.fragmentationSize;
408 }
409 return n;
410}
411
412uint64_t PoolStats::numActiveAllocs() const noexcept {
413 uint64_t n = 0;

Callers 6

updatePoolStatsMethod · 0.80
testFragmentationSizeMethod · 0.80
testMoveItemHelperMethod · 0.80
testCacheStatsMethod · 0.80

Calls

no outgoing calls

Tested by 5

testFragmentationSizeMethod · 0.64
testMoveItemHelperMethod · 0.64
testCacheStatsMethod · 0.64