We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 403bca0 commit c879923Copy full SHA for c879923
cachelib/allocator/CacheAllocator-inl.h
@@ -3610,7 +3610,10 @@ GlobalCacheStats CacheAllocator<CacheTrait>::getGlobalCacheStats() const {
3610
3611
template <typename CacheTrait>
3612
CacheMemoryStats CacheAllocator<CacheTrait>::getCacheMemoryStats() const {
3613
- const auto totalCacheSize = allocator_[currentTier()]->getMemorySize();
+ size_t totalCacheSize = 0;
3614
+ for(auto& allocator: allocator_) {
3615
+ totalCacheSize += allocator->getMemorySize();
3616
+ }
3617
3618
auto addSize = [this](size_t a, PoolId pid) {
3619
return a + allocator_[currentTier()]->getPool(pid).getPoolSize();
0 commit comments