Browse Source

jemalloc handler: add stats command

jemalloc handler: add stats command
joker2k 1 year ago
parent
commit
1400b46e22
1 changed files with 2 additions and 0 deletions
  1. 2 0
      library/cpp/malloc/jemalloc/malloc-info.cpp

+ 2 - 0
library/cpp/malloc/jemalloc/malloc-info.cpp

@@ -85,6 +85,8 @@ namespace {
                 static_assert(sizeof(size_t) == sizeof(void*), "fix me");
                 static_assert(sizeof(size_t) == sizeof(void*), "fix me");
 
 
                 return (const char*)(void*)allocated;
                 return (const char*)(void*)allocated;
+            } else if (strcmp(param, "j:stats_print_func") == 0) {
+                return (const char*)&malloc_stats_print;
             }
             }
 
 
             return nullptr;
             return nullptr;