diff options
| author | robot-piglet <[email protected]> | 2025-06-13 16:15:05 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-06-13 16:25:38 +0300 |
| commit | ef58752c7f51af2aea1b49df35e4d71f56db95ef (patch) | |
| tree | 7da854945b0a99b9ad9db1daba69e7ca5218167a | |
| parent | 53efc17ddbab38166de0e94dd8779503266756c6 (diff) | |
Intermediate changes
commit_hash:0823737499e7311774bfa8ecf5008efc20309e7d
| -rw-r--r-- | yt/yt/library/profiling/sensors_owner/sensors_owner.cpp | 15 | ||||
| -rw-r--r-- | yt/yt/library/profiling/sensors_owner/sensors_owner.h | 2 |
2 files changed, 17 insertions, 0 deletions
diff --git a/yt/yt/library/profiling/sensors_owner/sensors_owner.cpp b/yt/yt/library/profiling/sensors_owner/sensors_owner.cpp index 168aa94d988..0aa6428d628 100644 --- a/yt/yt/library/profiling/sensors_owner/sensors_owner.cpp +++ b/yt/yt/library/profiling/sensors_owner/sensors_owner.cpp @@ -199,6 +199,21 @@ TIntrusivePtr<TSensorsOwner::TState> TSensorsOwner::GetDefaultState() return state; } +const TSensorsOwner& TSensorsOwner::WithHot(bool value) const +{ + struct TChild + { + using TKey = bool; + + TSensorsOwner SensorsOwner; + + TChild(const TProfiler& profiler, bool value) + : SensorsOwner(profiler.WithHot(value)) + { } + }; + return Get<TChild>(value).SensorsOwner; +} + const TSensorsOwner& GetRootSensorsOwner() { struct TLocalType diff --git a/yt/yt/library/profiling/sensors_owner/sensors_owner.h b/yt/yt/library/profiling/sensors_owner/sensors_owner.h index 420fd007752..d343b45501e 100644 --- a/yt/yt/library/profiling/sensors_owner/sensors_owner.h +++ b/yt/yt/library/profiling/sensors_owner/sensors_owner.h @@ -64,6 +64,8 @@ public: const TSensorsOwner& WithGlobal() const; + const TSensorsOwner& WithHot(bool value = true) const; + const TProfiler& GetProfiler() const; /*! |
