aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-06-19 13:46:48 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-06-21 14:21:42 +0000
commitdcf26e838a7a17e4e774c3223dac45fb3c49a15a (patch)
tree07ce0069bed289b30185cea3d5b04dd26ba93257 /vespalib
parent54d5f3afc59fac9f2ba8b07998deac3fe641da28 (diff)
Obly count static memory as static.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/stllike/cache.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/vespalib/src/vespa/vespalib/stllike/cache.hpp b/vespalib/src/vespa/vespalib/stllike/cache.hpp
index 4e7736c9e5f..f767cf9812c 100644
--- a/vespalib/src/vespa/vespalib/stllike/cache.hpp
+++ b/vespalib/src/vespa/vespalib/stllike/cache.hpp
@@ -61,9 +61,7 @@ cache<P>::getStaticMemoryUsage() const {
MemoryUsage usage;
auto cacheGuard = getGuard();
usage.incAllocatedBytes(sizeof(*this));
- usage.incAllocatedBytes(Lru::capacity()*sizeof(typename Lru::value_type));
usage.incUsedBytes(sizeof(*this));
- usage.incUsedBytes(Lru::size()*sizeof(typename Lru::value_type));
return usage;
}