aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/histogram/simple/histogram.h
diff options
context:
space:
mode:
authormokhotskii <mokhotskii@ydb.tech>2022-10-06 15:51:01 +0300
committermokhotskii <mokhotskii@ydb.tech>2022-10-06 15:51:01 +0300
commit36dfefd91608b1e7a6237277086b716ee2aa273a (patch)
tree83b01bd1c21c581c8386753e990f4aac68593184 /library/cpp/histogram/simple/histogram.h
parent17f8d67dd110386b993d9bfc6ea5450bb5f99c1b (diff)
downloadydb-36dfefd91608b1e7a6237277086b716ee2aa273a.tar.gz
Introduce serverless names to labeled counters
1. Move some classes from tablet_counters_aggregator to private folder 2. Move labled counters to a separate proto file 3. Add serverless_names to labeled counters
Diffstat (limited to 'library/cpp/histogram/simple/histogram.h')
-rw-r--r--library/cpp/histogram/simple/histogram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/histogram/simple/histogram.h b/library/cpp/histogram/simple/histogram.h
index ceb09efc5c..16637ee9b3 100644
--- a/library/cpp/histogram/simple/histogram.h
+++ b/library/cpp/histogram/simple/histogram.h
@@ -46,6 +46,10 @@ namespace NSimpleHistogram {
return Values_.size();
}
+ void Reserve(size_t cnt) {
+ Values_.reserve(cnt);
+ }
+
void RecordValue(T value) {
Values_.push_back(value);
}