From 4e6ca03c5d255bc69653cb19f143575576311ed2 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Wed, 21 Dec 2016 23:06:45 +0100 Subject: [PATCH] Bug 1323100 - Stop double-registering the MediaStreamGraph thread with the profiler. r=froydnj MozReview-Commit-ID: 7WxNLZpBWL4 --HG-- extra : rebase_source : ce8fe0481c8e3c3d3efd3d1c15480490943ee202 --- dom/media/GraphDriver.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/dom/media/GraphDriver.cpp b/dom/media/GraphDriver.cpp index 33001cd332cc..ecb0acaecd49 100644 --- a/dom/media/GraphDriver.cpp +++ b/dom/media/GraphDriver.cpp @@ -39,19 +39,6 @@ namespace mozilla { StaticRefPtr AsyncCubebTask::sThreadPool; -struct AutoProfilerUnregisterThread -{ - // The empty ctor is used to silence a pre-4.8.0 GCC unused variable warning. - AutoProfilerUnregisterThread() - { - } - - ~AutoProfilerUnregisterThread() - { - profiler_unregister_thread(); - } -}; - GraphDriver::GraphDriver(MediaStreamGraphImpl* aGraphImpl) : mIterationStart(0), mIterationEnd(0), @@ -196,9 +183,7 @@ public: } NS_IMETHOD Run() override { - char aLocal; STREAM_LOG(LogLevel::Debug, ("Starting system thread")); - profiler_register_thread("MediaStreamGraph", &aLocal); LIFECYCLE_LOG("Starting a new system driver for graph %p\n", mDriver->mGraphImpl); @@ -316,8 +301,6 @@ SystemClockDriver::IsFallback() void ThreadedDriver::RunThread() { - AutoProfilerUnregisterThread autoUnregister; - bool stillProcessing = true; while (stillProcessing) { mIterationStart = IterationEnd();