Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
139
namespace {
140
size_t bytesToSlabs(size_t bytes) { return bytes / Slab::kSize; }
141
} // namespace
142
143
size_t MemoryMonitor::getPoolUsedSlabs(PoolId poolId) const noexcept {
Callers
5
getPoolUsedSlabs
Method · 0.85
getPoolSlabs
Method · 0.85
adviseAwaySlabs
Method · 0.85
reclaimSlabs
Method · 0.85
testMemoryMonitorPerIterationAdviseReclaim
Method · 0.85
Calls
no outgoing calls
Tested by
1
testMemoryMonitorPerIterationAdviseReclaim
Method · 0.68