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

Method getPoolSlabs

cachelib/allocator/MemoryMonitor.cpp:147–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147size_t MemoryMonitor::getPoolSlabs(PoolId poolId) const noexcept {
148 return bytesToSlabs(cache_.getPool(poolId).getPoolUsableSize());
149}
150
151size_t MemoryMonitor::getTotalSlabs() const noexcept {
152 const auto pools = cache_.getRegularPoolIds();

Callers

nothing calls this directly

Calls 2

bytesToSlabsFunction · 0.85
getPoolUsableSizeMethod · 0.80

Tested by

no test coverage detected