summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--yt/yt/library/profiling/sensor.cpp4
-rw-r--r--yt/yt/library/profiling/sensor.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/yt/yt/library/profiling/sensor.cpp b/yt/yt/library/profiling/sensor.cpp
index 560d9760bf4..138a8ae9597 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 2aa7299f32f..4d80da1d8db 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;