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

Method getPoolIds

cachelib/allocator/memory/MemoryPoolManager.cpp:192–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192std::set<PoolId> MemoryPoolManager::getPoolIds() const {
193 std::set<PoolId> ret;
194 for (PoolId id = 0; id < nextPoolId_; ++id) {
195 ret.insert(id);
196 }
197 return ret;
198}
199
200bool MemoryPoolManager::resizePools(PoolId src, PoolId dest, size_t bytes) {
201 auto& srcPool = getPoolById(src);

Callers 5

TEST_FFunction · 0.45
TEST_FFunction · 0.45
createMethod · 0.45
CacheMethod · 0.45
getCacheStatsMethod · 0.45

Calls 1

insertMethod · 0.45

Tested by 2

TEST_FFunction · 0.36
TEST_FFunction · 0.36