Bug 1504742 - Annotate idle stacks in the DecodePool code. r=aosmond
authorMarkus Stange <mstange@themasta.com>
Mon, 05 Nov 2018 18:14:17 +0000
changeset 500895 b5d968d728ea6babb6ebaf0f377eaf45415a04e1
parent 500894 52b0259b5c089f19b163630032e7bddd32330972
child 500896 35bdf87e61e60186b1178de0801a3359d6d81711
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaosmond
bugs1504742
milestone65.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
Bug 1504742 - Annotate idle stacks in the DecodePool code. r=aosmond Depends on D10927 Differential Revision: https://phabricator.services.mozilla.com/D10928
image/DecodePool.cpp
--- a/image/DecodePool.cpp
+++ b/image/DecodePool.cpp
@@ -189,16 +189,17 @@ private:
         return PopWorkFromQueue(mLowPriorityQueue);
       }
 
       if (mShuttingDown) {
         return CreateShutdownWork();
       }
 
       // Nothing to do; block until some work is available.
+      AUTO_PROFILER_LABEL("DecodePoolImpl::PopWorkLocked::Wait", IDLE);
       if (!aShutdownIdle) {
         // This thread was created before we hit the idle thread maximum. It
         // will never shutdown until the process itself is torn down.
         ++mIdleThreads;
         MOZ_ASSERT(mIdleThreads <= mThreads.Capacity());
         mMonitor.Wait();
       } else {
         // This thread should shutdown if it is idle. If we have waited longer