diff options
| author | nicememe <[email protected]> | 2023-10-10 17:42:16 +0300 |
|---|---|---|
| committer | nicememe <[email protected]> | 2023-10-10 18:06:17 +0300 |
| commit | 2d3a301d3ebf901baec1fdbc0fc5c6adf2683eaa (patch) | |
| tree | ddd53c7bd1e1ca937c04869e7f58034078aea185 | |
| parent | 20700492d03bf432c14fb15aeac4cc66486ad55c (diff) | |
add histogram support to YT sensor owner and add duration histogram to ext request
| -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 006207771a2..df47f260b58 100644 --- a/yt/yt/library/profiling/sensor.cpp +++ b/yt/yt/library/profiling/sensor.cpp @@ -141,7 +141,7 @@ TDuration TEventTimerGuard::GetElapsedTime() const //////////////////////////////////////////////////////////////////////////////// -void TGaugeHistogram::Add(double value, int count) noexcept +void TGaugeHistogram::Add(double value, int count) const noexcept { if (!Histogram_) { return; @@ -150,7 +150,7 @@ void TGaugeHistogram::Add(double value, int count) noexcept Histogram_->Add(value, count); } -void TGaugeHistogram::Remove(double value, int count) noexcept +void TGaugeHistogram::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 d832e25ff1f..196f76404a3 100644 --- a/yt/yt/library/profiling/sensor.h +++ b/yt/yt/library/profiling/sensor.h @@ -138,8 +138,8 @@ private: class TGaugeHistogram { 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; |
