Bug 708733 - Profiler: Only use leaf data on android ARM. r=ehsan
authorBenoit Girard <b56girard@gmail.com>
Sat, 11 Feb 2012 10:49:16 -0500
changeset 87754 fe5f655829e1641fa4944ab52d05813fc8a1d622
parent 87753 a32cc7faa71a3943e147defdf39ca6f59b943ac4
child 87755 0fb823decef1b362e789bfeb55a4170e7455c9f4
push id22143
push userphilringnalda@gmail.com
push dateSun, 26 Feb 2012 23:12:35 +0000
treeherdermozilla-central@b98fc24ac54b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan
bugs708733
milestone13.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
Bug 708733 - Profiler: Only use leaf data on android ARM. r=ehsan
tools/profiler/platform.h
--- a/tools/profiler/platform.h
+++ b/tools/profiler/platform.h
@@ -11,17 +11,19 @@
 #include "mozilla/StdInt.h"
 #include "mozilla/Util.h"
 #include "mozilla/unused.h"
 #include "mozilla/TimeStamp.h"
 #include "v8-support.h"
 #include <vector>
 #define ASSERT(a) MOZ_ASSERT(a)
 #ifdef ANDROID
+#ifdef defined(__arm__) || defined(__thumb__)
 #define ENABLE_SPS_LEAF_DATA
+#endif
 #define LOG(text) __android_log_print(ANDROID_LOG_ERROR, "profiler", "%s", text);
 #else
 #define LOG(text) printf("Profiler: %s\n", text)
 #endif
 
 typedef uint8_t* Address;
 
 // ----------------------------------------------------------------------------