Browse Source

Hu for market profiles

andrew-iv 1 year ago
parent
commit
349fc04bc3
1 changed files with 7 additions and 3 deletions
  1. 7 3
      build/ymake.core.conf

+ 7 - 3
build/ymake.core.conf

@@ -751,7 +751,7 @@ when ($COMMON_LINK_SETTINGS == "yes") {
     }
 
     when (($MUSL != "yes" && $WITH_VALGRIND == "yes") || $SANITIZER_DEFINED == "yes") {
-        when ($ALLOCATOR in [ "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "J", "LF", "LF_YT", "LF_DBG", "B", "BM", "C", "LOCKLESS", "YT", "MIM", "HU", "PROFILED_HU" ]) {
+        when ($ALLOCATOR in [ "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "J", "LF", "LF_YT", "LF_DBG", "B", "BM", "C", "LOCKLESS", "YT", "MIM", "HU", "PROFILED_HU", "THREAD_PROFILED_HU" ]) {
             PEERDIR+=library/cpp/malloc/system
         }
     }
@@ -766,6 +766,9 @@ when ($COMMON_LINK_SETTINGS == "yes") {
             "PROFILED_HU" ? {
                 PEERDIR+=library/cpp/malloc/profiled_hu
             }
+            "THREAD_PROFILED_HU" ? {
+                PEERDIR+=library/cpp/malloc/thread_profiled_hu
+            }
             "TCMALLOC_256K" ? {
                 PEERDIR+=library/cpp/malloc/tcmalloc
                 PEERDIR+=contrib/libs/tcmalloc
@@ -2447,7 +2450,7 @@ multimodule SANDBOX_PY3_TASK {
 ### Set memory allocator implementation for the PROGRAM()/DLL() module.
 ### This may only be specified for programs and dlls, use in other modules leads to configuration errors.
 ###
-### Available allocators are: "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU", "PROFILED_HU".
+### Available allocators are: "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU", "PROFILED_HU", "THREAD_PROFILED_HU".
 ###   - LF - lfalloc (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc)
 ###   - LF_YT -  Allocator selection for YT (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/yt/ya.make)
 ###   - LF_DBG -  Debug allocator selection (https://a.yandex-team.ru/arc/trunk/arcadia/library/cpp/lfalloc/dbg/ya.make)
@@ -2466,12 +2469,13 @@ multimodule SANDBOX_PY3_TASK {
 ###   - FAKE - Don't link with any allocator
 ###   - HU - Huge page allocator by @gulin.
 ###   - PROFILED_HU - patched HU. It is a bit slower but has metrics of memory consumption.
+###   - THREAD_PROFILED_HU - patched (special for market) HU. It is a bit slower but has metrics of memory consumption.
 ###
 ### More about allocators in Arcadia: https://wiki.yandex-team.ru/arcadia/allocators/
 macro ALLOCATOR(Alloc) {
     SET(ALLOCATOR $Alloc)
 
-    when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU", "PROFILED_HU" ]) {
+    when ($ALLOCATOR in [ "LF", "LF_YT", "LF_DBG", "YT", "J", "B", "BM", "C", "TCMALLOC", "TCMALLOC_SMALL_BUT_SLOW", "TCMALLOC_NUMA_256K", "TCMALLOC_NUMA_LARGE_PAGES", "TCMALLOC_256K", "TCMALLOC_TC", "GOOGLE", "LOCKLESS", "SYSTEM", "FAKE", "MIM", "HU", "PROFILED_HU", "THREAD_PROFILED_HU" ]) {
     }
     otherwise {
         PEERDIR+=___configure_error___unknown_allocator_type___$ALLOCATOR