author | Markus Stange <mstange@themasta.com> |
Wed, 21 Dec 2016 23:06:45 +0100 | |
changeset 375569 | 5d14f1e4b6fd8e4b1a3aa49296a5ef9679070a8e |
parent 375568 | a1c4f28d2a54b63a32728cab2b36ffa944e0e3fe |
child 375570 | 7947e6f167f2cb3a4c77b65a96a67b6f1fffc343 |
push id | 1419 |
push user | jlund@mozilla.com |
push date | Mon, 10 Apr 2017 20:44:07 +0000 |
treeherder | mozilla-release@5e6801b73ef6 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | froydnj |
bugs | 1323100 |
milestone | 53.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/dom/media/GraphDriver.cpp +++ b/dom/media/GraphDriver.cpp @@ -34,29 +34,16 @@ extern mozilla::LazyLogModule gMediaStre #else #define LIFECYCLE_LOG(...) #endif namespace mozilla { StaticRefPtr<nsIThreadPool> 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), mGraphImpl(aGraphImpl), mWaitState(WAITSTATE_RUNNING), mCurrentTimeStamp(TimeStamp::Now()), mPreviousDriver(nullptr), mNextDriver(nullptr) @@ -191,19 +178,17 @@ ThreadedDriver::~ThreadedDriver() class MediaStreamGraphInitThreadRunnable : public Runnable { public: explicit MediaStreamGraphInitThreadRunnable(ThreadedDriver* aDriver) : mDriver(aDriver) { } 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); GraphDriver* previousDriver = nullptr; { MonitorAutoLock mon(mDriver->mGraphImpl->GetMonitor()); previousDriver = mDriver->PreviousDriver(); } @@ -311,18 +296,16 @@ bool SystemClockDriver::IsFallback() { return mIsFallback; } void ThreadedDriver::RunThread() { - AutoProfilerUnregisterThread autoUnregister; - bool stillProcessing = true; while (stillProcessing) { mIterationStart = IterationEnd(); mIterationEnd += GetIntervalForIteration(); GraphTime stateComputedTime = StateComputedTime(); if (stateComputedTime < mIterationEnd) { STREAM_LOG(LogLevel::Warning, ("Media graph global underrun detected"));