Bug 1462784 - Annotate idle stacks in the native event loop on Windows. r=froydnj

MozReview-Commit-ID: A0c3ZLLkLUC

--HG--
extra : rebase_source : 9e6c0c0f2fad67fa60f06dbea38b66e3b2ebea6e
This commit is contained in:
Markus Stange 2018-05-18 18:59:05 -04:00
parent 81465bc0d6
commit 358ae08897

View File

@ -540,6 +540,7 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
// Block and wait for any posted application message
mozilla::HangMonitor::Suspend();
{
AUTO_PROFILER_LABEL("nsAppShell::ProcessNextNativeEvent::Wait", IDLE);
AUTO_PROFILER_THREAD_SLEEP;
WinUtils::WaitForMessage();
}