Bug 908995 - Part 4: Add build flags for TaskTracer. r=khuey.
authorShelly Lin <slin@mozilla.com>
Tue, 22 Apr 2014 10:32:29 +0800
changeset 198428 978c15264432b846d19be1ac2d803a7f8b453e26
parent 198427 3064ab64f06ad6aedb84e326603b12a96f922eab
child 198429 51dbd71f00a51ad1b616ccc84834db276aee9b19
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs908995
milestone31.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 908995 - Part 4: Add build flags for TaskTracer. r=khuey.
configure.in
--- a/configure.in
+++ b/configure.in
@@ -7431,16 +7431,28 @@ MOZ_ARG_ENABLE_BOOL(visual-event-tracer,
 [  --enable-visual-event-tracer   Enable visual event tracer instrumentation],
     MOZ_VISUAL_EVENT_TRACER=1,
     MOZ_VISUAL_EVENT_TRACER=)
 if test -n "$MOZ_VISUAL_EVENT_TRACER"; then
     AC_DEFINE(MOZ_VISUAL_EVENT_TRACER)
 fi
 
 dnl ========================================================
+dnl = Enable TaskTracer
+dnl ========================================================
+MOZ_ARG_ENABLE_BOOL(tasktracer,
+[  --enable-tasktracer       Set compile flags necessary for using TaskTracer],
+    MOZ_TASK_TRACER=1,
+    MOZ_TASK_TRACER= )
+if test "$MOZ_WIDGET_TOOLKIT" = "gonk" -a -n "$MOZ_TASK_TRACER"; then
+    AC_DEFINE(MOZ_TASK_TRACER)
+    AC_SUBST(MOZ_TASK_TRACER)
+fi
+
+dnl ========================================================
 dnl Turn on reflow counting
 dnl ========================================================
 MOZ_ARG_ENABLE_BOOL(reflow-perf,
 [  --enable-reflow-perf    Enable reflow performance tracing],
     MOZ_REFLOW_PERF=1,
     MOZ_REFLOW_PERF= )
 if test -n "$MOZ_REFLOW_PERF"; then
     AC_DEFINE(MOZ_REFLOW_PERF)