Bug 1462784 - Add an IDLE category. r=njn
MozReview-Commit-ID: JJ30AhXofBr
This commit is contained in:
@@ -190,6 +190,7 @@ class ProfilingStackFrame
|
|||||||
|
|
||||||
// Keep these in sync with devtools/client/performance/modules/categories.js
|
// Keep these in sync with devtools/client/performance/modules/categories.js
|
||||||
enum class Category : uint32_t {
|
enum class Category : uint32_t {
|
||||||
|
IDLE,
|
||||||
OTHER,
|
OTHER,
|
||||||
LAYOUT,
|
LAYOUT,
|
||||||
JS,
|
JS,
|
||||||
|
|||||||
@@ -726,7 +726,7 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
|
|||||||
}
|
}
|
||||||
|
|
||||||
AUTO_PROFILER_LABEL("nsAppShell::ProcessNextNativeEvent:Wait",
|
AUTO_PROFILER_LABEL("nsAppShell::ProcessNextNativeEvent:Wait",
|
||||||
OTHER);
|
IDLE);
|
||||||
mozilla::HangMonitor::Suspend();
|
mozilla::HangMonitor::Suspend();
|
||||||
|
|
||||||
curEvent = mEventQueue.Pop(/* mayWait */ true);
|
curEvent = mEventQueue.Pop(/* mayWait */ true);
|
||||||
|
|||||||
Reference in New Issue
Block a user