Bug 1491419 - move --enable-reflow-perf to moz.configure; r=nalexander

This commit is contained in:
Nathan Froyd 2018-10-01 14:51:27 -04:00
Родитель b0effdaae3
Коммит d8685e6b76
3 изменённых файлов: 16 добавлений и 18 удалений

Просмотреть файл

@ -200,7 +200,6 @@ def old_configure_options(*options):
'--enable-posix-nspr-emulation',
'--enable-pref-extensions',
'--enable-readline',
'--enable-reflow-perf',
'--enable-sandbox',
'--enable-signmar',
'--enable-startup-notification',

Просмотреть файл

@ -1910,7 +1910,6 @@ VPX_ARM_ASM=
LIBJPEG_TURBO_AS=
LIBJPEG_TURBO_ASFLAGS=
MOZ_PREF_EXTENSIONS=1
MOZ_REFLOW_PERF=
MOZ_SPELLCHECK=1
MOZ_TOOLKIT_SEARCH=1
MOZ_UNIVERSALCHARDET=1
@ -3520,17 +3519,6 @@ dnl =
dnl ========================================================
MOZ_ARG_HEADER(Profiling and Instrumenting)
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)
fi
dnl ========================================================
dnl = Offer a way to disable the startup cache
dnl ========================================================
@ -4367,11 +4355,6 @@ fi # COMPILE_ENVIRONMENT
dnl Set various defines and substitutions
dnl ========================================================
if test "$MOZ_DEBUG"; then
AC_DEFINE(MOZ_REFLOW_PERF)
AC_DEFINE(MOZ_REFLOW_PERF_DSP)
fi
if test "$ACCESSIBILITY" -a "$MOZ_ENABLE_GTK" ; then
AC_DEFINE(MOZ_ACCESSIBILITY_ATK)
ATK_FULL_VERSION=`$PKG_CONFIG --modversion atk`

Просмотреть файл

@ -1161,3 +1161,19 @@ option('--enable-tasktracer', help='Enable TaskTracer')
set_define('MOZ_TASK_TRACER', depends_if('--enable-tasktracer')(lambda _: True))
set_config('MOZ_TASK_TRACER', depends_if('--enable-tasktracer')(lambda _: True))
# Reflow counting
# ==============================================================
@depends(moz_debug, '--help')
def reflow_perf(debug, _):
if debug:
return True
option('--enable-reflow-perf', help='Enable reflow performance tracing',
default=reflow_perf)
# The difference in conditions here comes from the initial implementation
# in old-configure, which was unexplained there as well.
set_define('MOZ_REFLOW_PERF', depends_if('--enable-reflow-perf')(lambda _: True))
set_define('MOZ_REFLOW_PERF_DSP', reflow_perf)