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

Function bytesToSlabs

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

Source from the content-addressed store, hash-verified

138
139namespace {
140size_t bytesToSlabs(size_t bytes) { return bytes / Slab::kSize; }
141} // namespace
142
143size_t MemoryMonitor::getPoolUsedSlabs(PoolId poolId) const noexcept {

Callers 5

getPoolUsedSlabsMethod · 0.85
getPoolSlabsMethod · 0.85
adviseAwaySlabsMethod · 0.85
reclaimSlabsMethod · 0.85

Calls

no outgoing calls