From 3e295cfe16719124101e0b9cdcc3c7a467d8689f Mon Sep 17 00:00:00 2001 From: Michael Layzell Date: Thu, 11 May 2017 16:26:36 -0400 Subject: [PATCH] Bug 1357829 - Part 3: Remove profiler_get_stack_top, r=njn MozReview-Commit-ID: C4DvuOvYSrs --- tools/profiler/core/platform.cpp | 11 ----------- tools/profiler/public/GeckoProfiler.h | 6 ------ 2 files changed, 17 deletions(-) diff --git a/tools/profiler/core/platform.cpp b/tools/profiler/core/platform.cpp index 1c011f80cea8..68f7b1350dd9 100644 --- a/tools/profiler/core/platform.cpp +++ b/tools/profiler/core/platform.cpp @@ -3089,17 +3089,6 @@ profiler_clear_js_context() info->mContext = nullptr; } -void* -profiler_get_stack_top() -{ - PSAutoLock lock(gPSMutex); - ThreadInfo* threadInfo = FindLiveThreadInfo(lock); - if (threadInfo) { - return threadInfo->StackTop(); - } - return nullptr; -} - int profiler_current_thread_id() { diff --git a/tools/profiler/public/GeckoProfiler.h b/tools/profiler/public/GeckoProfiler.h index f7ef532145aa..73d8c52b2a6e 100644 --- a/tools/profiler/public/GeckoProfiler.h +++ b/tools/profiler/public/GeckoProfiler.h @@ -382,12 +382,6 @@ PROFILER_FUNC(double profiler_time(), 0) PROFILER_FUNC_VOID(profiler_log(const char* aStr)) -// Gets the stack top of the current thread. -// -// The thread must have been previously registered with the profiler, otherwise -// this method will return nullptr. -PROFILER_FUNC(void* profiler_get_stack_top(), nullptr) - PROFILER_FUNC(int profiler_current_thread_id(), 0) // This method suspends the thread identified by aThreadId, optionally samples