From 12bc174eaf16a035b7d1e950e84ada736e962cbe Mon Sep 17 00:00:00 2001 From: babenko Date: Thu, 2 Jan 2025 12:46:08 +0300 Subject: More TString -> std::string changes commit_hash:67d065b7702797fbc7c35d9b925eb6af0d672540 --- yt/yt/library/ytprof/api/api.cpp | 4 ++-- 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, CpuProfilerTagsPtr, nullptr); +YT_DEFINE_THREAD_LOCAL(std::atomic, CpuProfilerTagsPtr); struct TCpuProfilerTags { @@ -36,7 +36,7 @@ std::array, 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 StringValue; + std::string Name; + std::optional StringValue; std::optional 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) { } -- cgit v1.3