Bug 1464509: configure changes to ensure jemalloc is used if the profiler is on r=ted
authorRandell Jesup <rjesup@jesup.org>
Tue, 09 Oct 2018 22:29:02 -0400
changeset 496194 e6e614fca202037f308ae64fdac97af98164820d
parent 496193 6110df22039b250d85ba4fa19c4f7050b3b7b695
child 496195 906bd0577c3127d0d69bc6aa6605408b9fb7ce2c
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1464509
milestone64.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 1464509: configure changes to ensure jemalloc is used if the profiler is on r=ted
toolkit/moz.configure
--- a/toolkit/moz.configure
+++ b/toolkit/moz.configure
@@ -47,16 +47,20 @@ def gecko_profiler_parse_elf(value, targ
     # symbols from Android system libraries on the device. For other platforms
     # there exist alternatives that don't require bloating up our binary size.
     if value and target.os == 'Android':
         return True
 
 set_config('MOZ_GECKO_PROFILER_PARSE_ELF', gecko_profiler_parse_elf)
 set_define('MOZ_GECKO_PROFILER_PARSE_ELF', gecko_profiler_parse_elf)
 
+# enable this by default if the profiler is enabled
+# Note: also requires jemalloc
+set_config('MOZ_PROFILER_MEMORY', gecko_profiler_define)
+set_define('MOZ_PROFILER_MEMORY', gecko_profiler_define)
 
 option('--enable-dmd', env='MOZ_DMD',
        help='Enable Dark Matter Detector (heap profiler). '
             'Also enables jemalloc, replace-malloc and profiling')
 
 @depends('--enable-dmd')
 def dmd(value):
     if value: