Bug 1462784 - Add an IDLE category. r=njn

MozReview-Commit-ID: JJ30AhXofBr
This commit is contained in:
Markus Stange
2018-05-18 18:15:46 -04:00
parent 5e25303375
commit 48edad34f0
2 changed files with 2 additions and 1 deletions

View File

@@ -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,

View File

@@ -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);