Bug 1462784 - Add an IDLE category. r=njn
☠☠ backed out by e8eba439b33e ☠ ☠
authorMarkus Stange <mstange@themasta.com>
Fri, 18 May 2018 18:15:46 -0400
changeset 420796 2faf787fbbdf9bd0a876336effc3aa0fdb99e059
parent 420795 8f06963c7c6fe4d61a458d577ed28834aa990063
child 420797 3901070e2e604a35c37768ad09f3c70f344828fb
push id103894
push usercsabou@mozilla.com
push dateFri, 01 Jun 2018 09:46:36 +0000
treeherdermozilla-inbound@e99ff79303ea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnjn
bugs1462784
milestone62.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 1462784 - Add an IDLE category. r=njn MozReview-Commit-ID: JJ30AhXofBr
js/public/ProfilingStack.h
widget/android/nsAppShell.cpp
--- a/js/public/ProfilingStack.h
+++ b/js/public/ProfilingStack.h
@@ -185,16 +185,17 @@ class ProfilingStackFrame
         JS_OSR = 3,
 
         KIND_BITCOUNT = 2,
         KIND_MASK = (1 << KIND_BITCOUNT) - 1
     };
 
     // Keep these in sync with devtools/client/performance/modules/categories.js
     enum class Category : uint32_t {
+        IDLE,
         OTHER,
         LAYOUT,
         JS,
         GCCC,
         NETWORK,
         GRAPHICS,
         DOM,
 
--- a/widget/android/nsAppShell.cpp
+++ b/widget/android/nsAppShell.cpp
@@ -721,17 +721,17 @@ nsAppShell::ProcessNextNativeEvent(bool 
             // priority because we only process them before we're about to
             // wait for new events.
             if (jni::IsAvailable() && XRE_IsParentProcess() &&
                     AndroidBridge::Bridge()->PumpMessageLoop()) {
                 return true;
             }
 
             AUTO_PROFILER_LABEL("nsAppShell::ProcessNextNativeEvent:Wait",
-                                OTHER);
+                                IDLE);
             mozilla::HangMonitor::Suspend();
 
             curEvent = mEventQueue.Pop(/* mayWait */ true);
         }
     }
 
     if (!curEvent)
         return false;