diff options
author | uzhas <uzhas@ydb.tech> | 2023-06-14 13:08:27 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2023-06-14 13:08:27 +0300 |
commit | 5facf65aed282ca187d0c765579747e30b442664 (patch) | |
tree | bda6d9fc1d65c0ee6ece2fece9fbdc1c2903e8f8 /library/cpp | |
parent | 4b972da4fb8c047e6c1b876f3d026f213cade3b7 (diff) | |
download | ydb-5facf65aed282ca187d0c765579747e30b442664.tar.gz |
fix build with enabled PROFILE_MEMORY_ALLOCATIONS
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/prof/tag.cpp | 5 | ||||
-rw-r--r-- | library/cpp/actors/prof/ya.make | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/library/cpp/actors/prof/tag.cpp b/library/cpp/actors/prof/tag.cpp index 9ccf03e1a97..488d79e4d2d 100644 --- a/library/cpp/actors/prof/tag.cpp +++ b/library/cpp/actors/prof/tag.cpp @@ -8,6 +8,7 @@ #if defined(PROFILE_MEMORY_ALLOCATIONS) #include <library/cpp/lfalloc/dbg_info/dbg_info.h> #include <library/cpp/ytalloc/api/ytalloc.h> +#include <library/cpp/yt/memory/memory_tag.h> #endif #include <util/generic/singleton.h> @@ -83,8 +84,8 @@ namespace NProfiling { #if defined(PROFILE_MEMORY_ALLOCATIONS) static ui32 SetThreadAllocTag_YT(ui32 tag) { - auto prev = NYT::NYTAlloc::GetCurrentMemoryTag(); - NYT::NYTAlloc::SetCurrentMemoryTag(tag); + auto prev = NYT::GetCurrentMemoryTag(); + NYT::SetCurrentMemoryTag(tag); return prev; } diff --git a/library/cpp/actors/prof/ya.make b/library/cpp/actors/prof/ya.make index ca29f6cf390..4bae10a4439 100644 --- a/library/cpp/actors/prof/ya.make +++ b/library/cpp/actors/prof/ya.make @@ -17,6 +17,7 @@ IF (PROFILE_MEMORY_ALLOCATIONS) library/cpp/malloc/api library/cpp/lfalloc/dbg_info library/cpp/ytalloc/api + library/cpp/yt/memory ) ENDIF() |