Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj

This commit is contained in:
Victor Porof
2014-05-23 17:12:29 -04:00
parent 6f1ca7a367
commit 298ca2ed1b
79 changed files with 573 additions and 319 deletions

View File

@@ -228,14 +228,18 @@ nsAppShell::ProcessNextNativeEvent(bool mayWait)
{
EVLOG("nsAppShell::ProcessNextNativeEvent %d", mayWait);
PROFILER_LABEL("nsAppShell", "ProcessNextNativeEvent");
PROFILER_LABEL("nsAppShell", "ProcessNextNativeEvent",
js::ProfileEntry::Category::EVENTS);
nsAutoPtr<AndroidGeckoEvent> curEvent;
{
MutexAutoLock lock(mCondLock);
curEvent = PopNextEvent();
if (!curEvent && mayWait) {
PROFILER_LABEL("nsAppShell::ProcessNextNativeEvent", "Wait");
PROFILER_LABEL("nsAppShell", "ProcessNextNativeEvent::Wait",
js::ProfileEntry::Category::EVENTS);
// hmm, should we really hardcode this 10s?
#if defined(DEBUG_ANDROID_EVENTS)
PRTime t0, t1;