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

Method getPoolUsedSlabs

cachelib/allocator/MemoryMonitor.cpp:143–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141} // namespace
142
143size_t MemoryMonitor::getPoolUsedSlabs(PoolId poolId) const noexcept {
144 return bytesToSlabs(cache_.getPool(poolId).getCurrentUsedSize());
145}
146
147size_t MemoryMonitor::getPoolSlabs(PoolId poolId) const noexcept {
148 return bytesToSlabs(cache_.getPool(poolId).getPoolUsableSize());

Callers

nothing calls this directly

Calls 2

bytesToSlabsFunction · 0.85
getCurrentUsedSizeMethod · 0.80

Tested by

no test coverage detected