diff --git a/tools/profiler/core/memory_hooks.cpp b/tools/profiler/core/memory_hooks.cpp index 3ab0ea3dd95f..e8294ed2b7ef 100644 --- a/tools/profiler/core/memory_hooks.cpp +++ b/tools/profiler/core/memory_hooks.cpp @@ -547,8 +547,6 @@ void install_memory_hooks() { // Also initialize the ThreadIntercept, even if native allocation tracking // won't be turned on. This way the TLS will be initialized. ThreadIntercept::Init(); - } else { - sCounter->Clear(); } jemalloc_replace_dynamic(replace_init); } diff --git a/tools/profiler/public/ProfilerCounts.h b/tools/profiler/public/ProfilerCounts.h index c0c0890c3405..a86cf197095c 100644 --- a/tools/profiler/public/ProfilerCounts.h +++ b/tools/profiler/public/ProfilerCounts.h @@ -110,16 +110,6 @@ class BaseProfilerCount { # endif } - void Clear() { - *mCounter = 0; -# ifdef DEBUG - mPrevNumber = 0; -#endif - if (mNumber) { - *mNumber = 0; - } - } - // We don't define ++ and Add() here, since the static defines directly // increment the atomic counters, and the subclasses implement ++ and // Add() directly.