diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-16 13:41:07 +0300 |
---|---|---|
committer | Innokentii Mokin <innokentii@ydb.tech> | 2024-02-16 18:35:25 +0000 |
commit | cbeadf1f32e678c9c8f4cfaaa3b0187b16183309 (patch) | |
tree | c4e9246b174711143b9ffaf8c0df245d8ddc90c5 | |
parent | 6cd1a416797551804f9443699725123a32d37a60 (diff) | |
download | ydb-cbeadf1f32e678c9c8f4cfaaa3b0187b16183309.tar.gz |
Intermediate changes
-rw-r--r-- | yt/yt/library/profiling/sensor.cpp | 4 | ||||
-rw-r--r-- | yt/yt/library/profiling/sensor.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/yt/yt/library/profiling/sensor.cpp b/yt/yt/library/profiling/sensor.cpp index 560d9760bf..138a8ae959 100644 --- a/yt/yt/library/profiling/sensor.cpp +++ b/yt/yt/library/profiling/sensor.cpp @@ -216,7 +216,7 @@ TGaugeHistogram::operator bool() const //////////////////////////////////////////////////////////////////////////////// -void TRateHistogram::Add(double value, int count) noexcept +void TRateHistogram::Add(double value, int count) const noexcept { if (!Histogram_) { return; @@ -225,7 +225,7 @@ void TRateHistogram::Add(double value, int count) noexcept Histogram_->Add(value, count); } -void TRateHistogram::Remove(double value, int count) noexcept +void TRateHistogram::Remove(double value, int count) const noexcept { if (!Histogram_) { return; diff --git a/yt/yt/library/profiling/sensor.h b/yt/yt/library/profiling/sensor.h index 2aa7299f32..4d80da1d8d 100644 --- a/yt/yt/library/profiling/sensor.h +++ b/yt/yt/library/profiling/sensor.h @@ -160,8 +160,8 @@ private: class TRateHistogram { public: - void Add(double value, int count = 1) noexcept; - void Remove(double value, int count = 1) noexcept; + void Add(double value, int count = 1) const noexcept; + void Remove(double value, int count = 1) const noexcept; void Reset() noexcept; THistogramSnapshot GetSnapshot() const; |