Bug 1462784 - Annotate idle stacks in the native event loop on Linux. r=froydnj
☠☠ backed out by 66f87c551f18 ☠ ☠
authorMarkus Stange <mstange@themasta.com>
Fri, 18 May 2018 18:59:47 -0400
changeset 475256 a543b94b049a48ac005fc504a54759d306fb1906
parent 475255 d1ca8b0f22219693c455c09d7b63ed5eb77a1dee
child 475257 71fe35fd1f7ead6eeffd8f6b79abd09813d6724d
push id9374
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:43:20 +0000
treeherdermozilla-beta@160e085dfb0b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1462784
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1462784 - Annotate idle stacks in the native event loop on Linux. r=froydnj MozReview-Commit-ID: 3Q2A7ytsn1Y
widget/gtk/nsAppShell.cpp
--- a/widget/gtk/nsAppShell.cpp
+++ b/widget/gtk/nsAppShell.cpp
@@ -44,16 +44,17 @@ static GPollFunc sPollFunc;
 
 // Wrapper function to disable hang monitoring while waiting in poll().
 static gint
 PollWrapper(GPollFD *ufds, guint nfsd, gint timeout_)
 {
     mozilla::HangMonitor::Suspend();
     gint result;
     {
+        AUTO_PROFILER_LABEL("PollWrapper", IDLE);
         AUTO_PROFILER_THREAD_SLEEP;
         result = (*sPollFunc)(ufds, nfsd, timeout_);
     }
     mozilla::HangMonitor::NotifyActivity();
     return result;
 }
 
 #ifdef MOZ_WIDGET_GTK