Bug 1465659 - Take PERFHERDER_EXTRA_OPTIONS into account for static initializer count report. r?build
--- 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