diff options
| author | babenko <[email protected]> | 2025-01-02 12:46:08 +0300 |
|---|---|---|
| committer | babenko <[email protected]> | 2025-01-02 13:04:15 +0300 |
| commit | 12bc174eaf16a035b7d1e950e84ada736e962cbe (patch) | |
| tree | e5986a196c3440c5fc0f9a7e73b975fdc71d320a | |
| parent | 7ed21c39987d557bcc53e10ac71e7dd96a91c550 (diff) | |
More TString -> std::string changes
commit_hash:67d065b7702797fbc7c35d9b925eb6af0d672540
| -rw-r--r-- | yt/yt/library/ytprof/api/api.cpp | 4 | ||||
| -rw-r--r-- | yt/yt/library/ytprof/api/api.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/yt/yt/library/ytprof/api/api.cpp b/yt/yt/library/ytprof/api/api.cpp index 4f379232c94..8e2c83b2a1d 100644 --- a/yt/yt/library/ytprof/api/api.cpp +++ b/yt/yt/library/ytprof/api/api.cpp @@ -11,7 +11,7 @@ DEFINE_REFCOUNTED_TYPE(TProfilerTag) struct TCpuProfilerTags; // This variable is referenced from signal handler. -YT_DEFINE_THREAD_LOCAL(std::atomic<TCpuProfilerTags*>, CpuProfilerTagsPtr, nullptr); +YT_DEFINE_THREAD_LOCAL(std::atomic<TCpuProfilerTags*>, CpuProfilerTagsPtr); struct TCpuProfilerTags { @@ -36,7 +36,7 @@ std::array<TAtomicSignalPtr<TProfilerTag>, MaxActiveTags>* GetCpuProfilerTags() { auto tags = CpuProfilerTagsPtr().load(); if (tags) { - return &(tags->Tags); + return &tags->Tags; } return nullptr; diff --git a/yt/yt/library/ytprof/api/api.h b/yt/yt/library/ytprof/api/api.h index 854e2ab7fe6..2153bc58d4c 100644 --- a/yt/yt/library/ytprof/api/api.h +++ b/yt/yt/library/ytprof/api/api.h @@ -16,16 +16,16 @@ namespace NYT::NYTProf { struct TProfilerTag final { - TString Name; - std::optional<TString> StringValue; + std::string Name; + std::optional<std::string> StringValue; std::optional<i64> IntValue; - TProfilerTag(const TString& name, const TString& value) + TProfilerTag(const std::string& name, const std::string& value) : Name(name) , StringValue(value) { } - TProfilerTag(const TString& name, i64 value) + TProfilerTag(const std::string& name, i64 value) : Name(name) , IntValue(value) { } |
