From db3241ccc70a83d0935ecae66377e7b1a1d4cdad Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 30 Apr 2020 16:30:10 +0300 Subject: [PATCH] Add sampling memory profiler --- src/Interpreters/ThreadStatusExt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Interpreters/ThreadStatusExt.cpp b/src/Interpreters/ThreadStatusExt.cpp index 272f4864ed9..a3c88204664 100644 --- a/src/Interpreters/ThreadStatusExt.cpp +++ b/src/Interpreters/ThreadStatusExt.cpp @@ -86,7 +86,7 @@ void ThreadStatus::setupState(const ThreadGroupStatusPtr & thread_group_) const Settings & settings = query_context->getSettingsRef(); if (settings.memory_profiler_step < UInt64(untracked_memory_limit)) - untracked_memory = settings.memory_profiler_step; + untracked_memory_limit = settings.memory_profiler_step; #if defined(OS_LINUX) /// Set "nice" value if required.