Bug 1462784 - Add an IDLE category. r=njn

MozReview-Commit-ID: JJ30AhXofBr

--HG--
extra : rebase_source : d79d4da6d51a5dd7259cf015ee1f3678d59ac3bd
This commit is contained in:
Markus Stange 2018-05-18 18:15:46 -04:00
parent d80822de42
commit d521b4678d
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
enum class Category : uint32_t {
IDLE,
OTHER,
LAYOUT,
JS,

View File

@ -726,7 +726,7 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
}
AUTO_PROFILER_LABEL("nsAppShell::ProcessNextNativeEvent:Wait",
OTHER);
IDLE);
mozilla::HangMonitor::Suspend();
curEvent = mEventQueue.Pop(/* mayWait */ true);