author | Benoit Girard <b56girard@gmail.com> |
Tue, 23 Apr 2013 14:33:38 -0400 | |
changeset 140615 | 22b4a153b3c53aa7a49383f1a09ca5b460981cff |
parent 140614 | 24644ba49ce594832745a12100734573a8e94d9a |
child 140616 | 35f98c472fb1c715e17ad8be968fad00816c6133 |
push id | 2579 |
push user | akeybl@mozilla.com |
push date | Mon, 24 Jun 2013 18:52:47 +0000 |
treeherder | mozilla-beta@b69b7de8a05a [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bustage |
bugs | 788022 |
milestone | 23.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
|
tools/profiler/TableTicker.cpp | file | annotate | diff | comparison | revisions | |
tools/profiler/platform.cpp | file | annotate | diff | comparison | revisions |
--- a/tools/profiler/TableTicker.cpp +++ b/tools/profiler/TableTicker.cpp @@ -29,17 +29,17 @@ #include "nsIXULRuntime.h" #include "nsIXULAppInfo.h" #include "nsDirectoryServiceUtils.h" #include "nsDirectoryServiceDefs.h" #include "nsIObserverService.h" #include "mozilla/Services.h" #include "PlatformMacros.h" -#ifdef ANDROID +#if defined(SPS_OS_android) && !defined(MOZ_WIDGET_GONK) #include "AndroidBridge.h" #endif // JS #include "jsdbgapi.h" // we eventually want to make this runtime switchable #if defined(MOZ_PROFILING) && (defined(XP_UNIX) && !defined(XP_MACOSX)) @@ -159,17 +159,17 @@ JSObject* TableTicker::ToJSObject(JSCont JSObjectBuilder b(aCx); JSCustomObject* profile = b.CreateObject(); BuildJSObject(b, profile); JSObject* jsProfile = b.GetJSObject(profile); return jsProfile; } -#ifdef ANDROID +#if defined(SPS_OS_android) && !defined(MOZ_WIDGET_GONK) static JSCustomObject* BuildJavaThreadJSObject(JSAObjectBuilder& b) { JSCustomObject* javaThread = b.CreateObject(); b.DefineProperty(javaThread, "name", "Java Main Thread"); JSCustomArray *samples = b.CreateArray(); b.DefineProperty(javaThread, "samples", samples); @@ -238,17 +238,17 @@ void TableTicker::BuildJSObject(JSAObjec MutexAutoLock lock(*sRegisteredThreads->at(i)->Profile()->GetMutex()); JSCustomObject* threadSamples = b.CreateObject(); sRegisteredThreads->at(i)->Profile()->BuildJSObject(b, threadSamples); b.ArrayPush(threads, threadSamples); } } -#ifdef ANDROID +#if defined(SPS_OS_android) && !defined(MOZ_WIDGET_GONK) if (ProfileJava()) { AndroidBridge::Bridge()->PauseJavaProfiling(); JSCustomObject* javaThread = BuildJavaThreadJSObject(b); b.ArrayPush(threads, javaThread); AndroidBridge::Bridge()->UnpauseJavaProfiling(); }
--- a/tools/profiler/platform.cpp +++ b/tools/profiler/platform.cpp @@ -15,17 +15,17 @@ #include "TableTicker.h" #include "UnwinderThread2.h" #include "nsIObserverService.h" #include "nsDirectoryServiceUtils.h" #include "nsDirectoryServiceDefs.h" #include "mozilla/Services.h" #include "nsThreadUtils.h" -#ifdef ANDROID +#if defined(SPS_OS_android) && !defined(MOZ_WIDGET_GONK) #include "AndroidBridge.h" #endif mozilla::ThreadLocal<PseudoStack *> tlsPseudoStack; mozilla::ThreadLocal<TableTicker *> tlsTicker; // We need to track whether we've been initialized otherwise // we end up using tlsStack without initializing it. // Because tlsStack is totally opaque to us we can't reuse @@ -446,17 +446,17 @@ void mozilla_sampler_start(int aProfileE ThreadProfile* thread_profile = info->Profile(); if (!thread_profile) { continue; } thread_profile->GetPseudoStack()->enableJSSampling(); } } -#ifdef ANDROID +#if defined(SPS_OS_android) && !defined(MOZ_WIDGET_GONK) if (t->ProfileJava()) { int javaInterval = aInterval; // Java sampling doesn't accuratly keep up with 1ms sampling if (javaInterval < 10) { aInterval = 10; } mozilla::AndroidBridge::Bridge()->StartJavaProfiling(javaInterval, 1000); }