Bug 1462784 - Add an IDLE category. r?njn
MozReview-Commit-ID: JJ30AhXofBr
--- 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;