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 444459 b5d968d728ea6babb6ebaf0f377eaf45415a04e1
parent 444458 52b0259b5c089f19b163630032e7bddd32330972
child 444460 35bdf87e61e60186b1178de0801a3359d6d81711
push id34996
push userrgurzau@mozilla.com
push dateTue, 06 Nov 2018 09:53:23 +0000
treeherdermozilla-central@e160f0a60e4f [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