summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-08-15 08:18:13 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-08-15 08:18:13 +0000
commit108b10c069c5a80ab3027caa5aa62aedf184ef43 (patch)
tree44dcf199c9ac45a702fdd7678819f347e1eb1bc8 /searchcore
parenta97c478777f7c254d772df406b2afa0b6735261c (diff)
Also provide used and on-hold memory in overview.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
index ddf240ad90c..51ac20dd4bb 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
@@ -158,6 +158,8 @@ AttributeVectorExplorer::get_state(const vespalib::slime::Inserter &inserter, bo
object.setLong("numDocs", status.getNumDocs());
object.setLong("lastSerialNum", status.getLastSyncToken());
object.setLong("allocatedMemory", status.getAllocated());
+ object.setLong("usedMemory", status.getUsed());
+ object.setLong("onHoldMemory", status.getOnHold());
object.setLong("committedDocIdLimit", attr.getCommittedDocIdLimit());
}
}