Bug 1465659 - Take PERFHERDER_EXTRA_OPTIONS into account for static initializer count report. r=nalexander
authorMike Hommey <mh+mozilla@glandium.org>
Thu, 31 May 2018 12:55:38 +0900
changeset 420810 e2087bd3daee2269846444950e7d9fae40f80f3a
parent 420809 119c2055e002d3239973b08b36b77383e384b423
child 420811 5fc13d0a68ad0c5bc1c968c62ca8314812b7acc1
push id103894
push usercsabou@mozilla.com
push dateFri, 01 Jun 2018 09:46:36 +0000
treeherdermozilla-inbound@e99ff79303ea [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnalexander
bugs1465659
milestone62.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 1465659 - Take PERFHERDER_EXTRA_OPTIONS into account for static initializer count report. r=nalexander
toolkit/crashreporter/tools/symbolstore.py
--- a/toolkit/crashreporter/tools/symbolstore.py
+++ b/toolkit/crashreporter/tools/symbolstore.py
@@ -628,16 +628,21 @@ class Dumper:
                     "subtests": [{
                         "name": "num_static_constructors",
                         "value": ctors,
                         "alertChangeType": "absolute",
                         "alertThreshold": 3
                     }]}
                 ]
             }
+            for opt in os.environ.get('PERFHERDER_EXTRA_OPTIONS', '').split():
+                for suite in perfherder_data['suites']:
+                    if opt not in suite.get('extraOptions', []):
+                        suite.setdefault('extraOptions', []).append(opt)
+
             print('PERFHERDER_DATA: %s' % json.dumps(perfherder_data),
                   file=sys.stderr)
 
         elapsed = time.time() - t_start
         print('Finished processing %s in %.2fs' % (file, elapsed),
               file=sys.stderr)
 
 # Platform-specific subclasses.  For the most part, these just have