Bug 962511 - Add missing MOZ_INSTRUMENT_EVENT_LOOP ifdef to nsAppShellService.cpp. r=ehsan

This commit is contained in:
Oleg Romashin 2014-02-12 10:33:43 -05:00
parent 21b73c9967
commit d6c8989ca4

View File

@ -46,7 +46,9 @@
#include "nsIWebBrowser.h"
#include "nsIDocShell.h"
#ifdef MOZ_INSTRUMENT_EVENT_LOOP
#include "EventTracer.h"
#endif
using namespace mozilla;
@ -872,13 +874,17 @@ nsAppShellService::Observe(nsISupports* aSubject, const char *aTopic,
NS_IMETHODIMP
nsAppShellService::StartEventLoopLagTracking(bool* aResult)
{
#ifdef MOZ_INSTRUMENT_EVENT_LOOP
*aResult = mozilla::InitEventTracing(true);
#endif
return NS_OK;
}
NS_IMETHODIMP
nsAppShellService::StopEventLoopLagTracking()
{
#ifdef MOZ_INSTRUMENT_EVENT_LOOP
mozilla::ShutdownEventTracing();
#endif
return NS_OK;
}