Bug 1462784 - Add an IDLE category. r=njn

MozReview-Commit-ID: JJ30AhXofBr

--HG--
extra : rebase_source : 0e94fb43e57411281fd57eea54815aef4558b6df
This commit is contained in:
Markus Stange 2018-05-18 18:15:46 -04:00
Родитель 423ce68542
Коммит c545b8d1ba
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

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

Просмотреть файл

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