mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 962511 - Add missing MOZ_INSTRUMENT_EVENT_LOOP ifdef to nsAppShellService.cpp. r=ehsan
This commit is contained in:
parent
21b73c9967
commit
d6c8989ca4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user