diff options
author | Igor Makunin <igor.makunin@gmail.com> | 2022-02-10 16:49:35 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:35 +0300 |
commit | c617191a3b33c0f5e1be6390361dbe540775d158 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/monlib/counters | |
parent | f7a438035f19b364b5479caf536990e82b174f38 (diff) | |
download | ydb-c617191a3b33c0f5e1be6390361dbe540775d158.tar.gz |
Restoring authorship annotation for Igor Makunin <igor.makunin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/counters')
-rw-r--r-- | library/cpp/monlib/counters/histogram.cpp | 6 | ||||
-rw-r--r-- | library/cpp/monlib/counters/histogram.h | 2 | ||||
-rw-r--r-- | library/cpp/monlib/counters/histogram_ut.cpp | 4 | ||||
-rw-r--r-- | library/cpp/monlib/counters/timer.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/monlib/counters/histogram.cpp b/library/cpp/monlib/counters/histogram.cpp index 41d8a19372..46cf4e6ec8 100644 --- a/library/cpp/monlib/counters/histogram.cpp +++ b/library/cpp/monlib/counters/histogram.cpp @@ -12,8 +12,8 @@ namespace NMonitoring { << ", 95%: " << Percentile95 << ", 98%: " << Percentile98 << ", 99%: " << Percentile99 - << ", 99.9%: " << Percentile999 - << ", count: " << TotalCount; + << ", 99.9%: " << Percentile999 + << ", count: " << TotalCount; } void THdrHistogram::TakeSnaphot(THistogramSnapshot* snapshot) { @@ -30,7 +30,7 @@ namespace NMonitoring { snapshot->Percentile98 = Data_.GetValueAtPercentile(98.0); snapshot->Percentile99 = Data_.GetValueAtPercentile(99.0); snapshot->Percentile999 = Data_.GetValueAtPercentile(99.9); - snapshot->TotalCount = Data_.GetTotalCount(); + snapshot->TotalCount = Data_.GetTotalCount(); // cleanup histogram data Data_.Reset(); diff --git a/library/cpp/monlib/counters/histogram.h b/library/cpp/monlib/counters/histogram.h index ef4d50d369..96361b0023 100644 --- a/library/cpp/monlib/counters/histogram.h +++ b/library/cpp/monlib/counters/histogram.h @@ -21,7 +21,7 @@ namespace NMonitoring { i64 Percentile98; i64 Percentile99; i64 Percentile999; - i64 TotalCount; + i64 TotalCount; void Print(IOutputStream* out) const; }; diff --git a/library/cpp/monlib/counters/histogram_ut.cpp b/library/cpp/monlib/counters/histogram_ut.cpp index c45a6237ac..5a0800505a 100644 --- a/library/cpp/monlib/counters/histogram_ut.cpp +++ b/library/cpp/monlib/counters/histogram_ut.cpp @@ -41,7 +41,7 @@ Y_UNIT_TEST_SUITE(THistorgamTest) { UNIT_ASSERT_EQUAL(snapshot.Percentile98, 5); UNIT_ASSERT_EQUAL(snapshot.Percentile99, 5); UNIT_ASSERT_EQUAL(snapshot.Percentile999, 5); - - UNIT_ASSERT_EQUAL(snapshot.TotalCount, 14); + + UNIT_ASSERT_EQUAL(snapshot.TotalCount, 14); } } diff --git a/library/cpp/monlib/counters/timer.h b/library/cpp/monlib/counters/timer.h index 87bf3c720b..03dfb35337 100644 --- a/library/cpp/monlib/counters/timer.h +++ b/library/cpp/monlib/counters/timer.h @@ -111,7 +111,7 @@ namespace NMonitoring { template <typename TFunc> void Measure(TFunc&& fn) { using TClock = std::chrono::high_resolution_clock; - + auto start = TClock::now(); Y_SCOPE_EXIT(this, start) { |