diff options
author | mokhotskii <mokhotskii@ydb.tech> | 2022-10-06 15:51:01 +0300 |
---|---|---|
committer | mokhotskii <mokhotskii@ydb.tech> | 2022-10-06 15:51:01 +0300 |
commit | 36dfefd91608b1e7a6237277086b716ee2aa273a (patch) | |
tree | 83b01bd1c21c581c8386753e990f4aac68593184 /library/cpp/histogram/simple/histogram.h | |
parent | 17f8d67dd110386b993d9bfc6ea5450bb5f99c1b (diff) | |
download | ydb-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.h | 4 |
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); } |