Bug 1338210 - Set threshold for num_static_constructor alerts to 3 r?jmaher draft
authorWilliam Lachance <wlachance@mozilla.com>
Fri, 10 Mar 2017 13:53:08 -0500
changeset 496885 7894d8bf2b54418e1ecdd657269c6b12a5ea8006
parent 496768 a8d497b09753c91783b68c5805c64f34a2f39629
child 548737 7ca29a3122d31d8f19c1f2746a784958eefad454
push id48730
push userwlachance@mozilla.com
push dateFri, 10 Mar 2017 21:05:29 +0000
reviewersjmaher
bugs1338210
milestone55.0a1
Bug 1338210 - Set threshold for num_static_constructor alerts to 3 r?jmaher MozReview-Commit-ID: 6publ0XDq3G
build/util/count_ctors.py
--- a/build/util/count_ctors.py
+++ b/build/util/count_ctors.py
@@ -1,11 +1,12 @@
 
 #!/usr/bin/python
 import json
+
 import re
 import subprocess
 import sys
 
 def count_ctors(filename):
     proc = subprocess.Popen(
         ['readelf', '-W', '-S', filename], stdout=subprocess.PIPE)
 
@@ -51,14 +52,15 @@ if __name__ == '__main__':
     for f in sys.argv[1:]:
         perfherder_data = {
             "framework": {"name": "build_metrics"},
             "suites": [{
                 "name": "compiler_metrics",
                 "subtests": [{
                     "name": "num_static_constructors",
                     "value": count_ctors(f),
-                    "alertThreshold": 0.25
+                    "alertChangeType": "absolute",
+                    "alertThreshold": 3
                 }]}
             ]
         }
         print "PERFHERDER_DATA: %s" % json.dumps(perfherder_data)