diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-05-24 14:06:04 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-05-24 14:06:04 +0200 |
commit | ac25827a87d86f1cf9e48aab6605f77a2c89041a (patch) | |
tree | c3533a008e606f4f6393e838b4305cf6d07f47d2 /xpcom/threads/ThreadStackHelper.h | |
parent | c8b38a18031f6ae0fca8b2bef73daa86f6f96ae8 (diff) | |
download | UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.tar UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.tar.gz UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.tar.lz UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.tar.xz UXP-ac25827a87d86f1cf9e48aab6605f77a2c89041a.zip |
Remove SPS profiler.
- Conditionals and code blocks. (MOZ_ENABLE_PROFILER_SPS)
- Stub out several profiler-only functions.
Diffstat (limited to 'xpcom/threads/ThreadStackHelper.h')
-rw-r--r-- | xpcom/threads/ThreadStackHelper.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/xpcom/threads/ThreadStackHelper.h b/xpcom/threads/ThreadStackHelper.h index 9c40ad5e2..f06e704b4 100644 --- a/xpcom/threads/ThreadStackHelper.h +++ b/xpcom/threads/ThreadStackHelper.h @@ -23,27 +23,6 @@ #include <mach/mach.h> #endif -// Support pseudostack on these platforms. -#if defined(XP_LINUX) || defined(XP_WIN) || defined(XP_MACOSX) -# ifdef MOZ_ENABLE_PROFILER_SPS -# define MOZ_THREADSTACKHELPER_PSEUDO -# endif -#endif - -#ifdef MOZ_THREADSTACKHELPER_PSEUDO -# define MOZ_THREADSTACKHELPER_NATIVE -# if defined(__i386__) || defined(_M_IX86) -# define MOZ_THREADSTACKHELPER_X86 -# elif defined(__x86_64__) || defined(_M_X64) -# define MOZ_THREADSTACKHELPER_X64 -# elif defined(__arm__) || defined(_M_ARM) -# define MOZ_THREADSTACKHELPER_ARM -# else - // Unsupported architecture -# undef MOZ_THREADSTACKHELPER_NATIVE -# endif -#endif - namespace mozilla { /** @@ -63,29 +42,10 @@ public: private: Stack* mStackToFill; -#ifdef MOZ_THREADSTACKHELPER_PSEUDO - const PseudoStack* const mPseudoStack; -#ifdef MOZ_THREADSTACKHELPER_NATIVE - class ThreadContext; - // Set to non-null if GetStack should get the thread context. - ThreadContext* mContextToFill; - intptr_t mThreadStackBase; -#endif - size_t mMaxStackSize; - size_t mMaxBufferSize; -#endif bool PrepareStackBuffer(Stack& aStack); void FillStackBuffer(); void FillThreadContext(void* aContext = nullptr); -#ifdef MOZ_THREADSTACKHELPER_PSEUDO - const char* AppendJSEntry(const volatile StackEntry* aEntry, - intptr_t& aAvailableBufferSize, - const char* aPrevLabel); -#endif -#ifdef MOZ_THREADSTACKHELPER_NATIVE - void GetThreadStackBase(); -#endif public: /** |