Bug 1462784 - Add an IDLE category. r?njn draft
authorMarkus Stange <mstange@themasta.com>
Fri, 18 May 2018 18:15:46 -0400
changeset 803066 f9b44707b930939253b689ddb72430f622ff8b1f
parent 803065 dc86b47d07c680353ed98878768ed365f1cb2789
child 803067 ca005349400d2ef259293faf45730f3ff3785a7f
push id112022
push userbmo:mstange@themasta.com
push dateFri, 01 Jun 2018 21:00:49 +0000
reviewersnjn
bugs1462784
milestone62.0a1
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;