// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "imported_attribute_vector_explorer.h" #include #include #include #include using search::StateExplorerUtils; using search::attribute::ImportedAttributeVector; using namespace vespalib::slime; namespace proton { ImportedAttributeVectorExplorer::ImportedAttributeVectorExplorer(std::shared_ptr attr) : _attr(std::move(attr)) { } void ImportedAttributeVectorExplorer::get_state(const vespalib::slime::Inserter &inserter, bool) const { Cursor &object = inserter.insertObject(); auto memory_usage = _attr->get_memory_usage(); StateExplorerUtils::memory_usage_to_slime(memory_usage, object.setObject("cacheMemoryUsage")); } }