aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/vespa/searchcore/proton/metrics/legacy_attribute_metrics.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/vespa/searchcore/proton/metrics/legacy_attribute_metrics.h')
-rw-r--r--searchcore/src/vespa/searchcore/proton/metrics/legacy_attribute_metrics.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/metrics/legacy_attribute_metrics.h b/searchcore/src/vespa/searchcore/proton/metrics/legacy_attribute_metrics.h
deleted file mode 100644
index 073acabf614..00000000000
--- a/searchcore/src/vespa/searchcore/proton/metrics/legacy_attribute_metrics.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-
-#pragma once
-
-#include <vespa/metrics/metricset.h>
-#include <vespa/metrics/valuemetric.h>
-#include <map>
-
-namespace proton {
-
-struct LegacyAttributeMetrics : metrics::MetricSet {
-
- // The metric set also owns the actual metrics for individual
- // attribute vectors. Another way to do this would be to let the
- // attribute vectors own their own metrics, but this would
- // generate more dependencies and reduce locality of code changes.
-
- struct List : metrics::MetricSet {
- struct Entry : metrics::MetricSet {
- using UP = std::unique_ptr<Entry>;
- metrics::LongValueMetric memoryUsage;
- metrics::LongValueMetric bitVectors;
- Entry(const std::string &name);
- };
- Entry *add(const std::string &name);
- Entry *get(const std::string &name) const;
- Entry::UP remove(const std::string &name);
- std::vector<Entry::UP> release();
-
- // per attribute metrics will be wired in here (by the metrics engine)
- List(metrics::MetricSet *parent);
- ~List() override;
-
- private:
- std::map<std::string, Entry::UP> metrics;
- };
-
- List list;
- metrics::LongValueMetric memoryUsage;
- metrics::LongValueMetric bitVectors;
-
- LegacyAttributeMetrics(metrics::MetricSet *parent);
- ~LegacyAttributeMetrics();
-};
-
-} // namespace proton
-