summaryrefslogtreecommitdiffstats
path: root/eval/src/vespa/eval/eval/fast_value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'eval/src/vespa/eval/eval/fast_value.hpp')
-rw-r--r--eval/src/vespa/eval/eval/fast_value.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval/src/vespa/eval/eval/fast_value.hpp b/eval/src/vespa/eval/eval/fast_value.hpp
index 0ad5124a6c9..cc9eb663b76 100644
--- a/eval/src/vespa/eval/eval/fast_value.hpp
+++ b/eval/src/vespa/eval/eval/fast_value.hpp
@@ -36,7 +36,7 @@ struct FastCells {
size_t capacity;
size_t size;
mutable alloc::Alloc memory;
- FastCells(size_t initial_capacity);
+ explicit FastCells(size_t initial_capacity);
FastCells(const FastCells &) = delete;
FastCells & operator = (const FastCells &) = delete;
~FastCells();
@@ -184,6 +184,7 @@ struct FastValue final : Value, ValueBuilder<T> {
}
MemoryUsage get_memory_usage() const override {
MemoryUsage usage = self_memory_usage<FastValue<T,transient>>();
+ usage.merge(vector_extra_memory_usage(my_type.dimensions()));
usage.merge(vector_extra_memory_usage(get_view(my_handles)));
usage.merge(my_index.map.estimate_extra_memory_usage());
usage.merge(my_cells.estimate_extra_memory_usage());