diff --git a/widget/android/nsAppShell.cpp b/widget/android/nsAppShell.cpp index 78c034ff808..823aa409f1e 100644 --- a/widget/android/nsAppShell.cpp +++ b/widget/android/nsAppShell.cpp @@ -63,6 +63,7 @@ #include "mozilla/dom/ScreenOrientation.h" +#include "sampler.h" #ifdef MOZ_ANDROID_HISTORY #include "nsAndroidHistory.h" #endif @@ -220,18 +221,19 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait) { EVLOG("nsAppShell::ProcessNextNativeEvent %d", mayWait); + SAMPLE_LABEL("nsAppShell", "ProcessNextNativeEvent"); nsAutoPtr curEvent; { MutexAutoLock lock(mCondLock); curEvent = PopNextEvent(); if (!curEvent && mayWait) { + SAMPLE_LABEL("nsAppShell::ProcessNextNativeEvent", "Wait"); // hmm, should we really hardcode this 10s? #if defined(DEBUG_ANDROID_EVENTS) PRTime t0, t1; EVLOG("nsAppShell: waiting on mQueueCond"); t0 = PR_Now(); - mQueueCond.Wait(PR_MillisecondsToInterval(10000)); t1 = PR_Now(); EVLOG("nsAppShell: wait done, waited %d ms", (int)(t1-t0)/1000);