Bug 1500176 - Annotate DMD perfherder results. r=bc
authorEric Rahm <erahm@mozilla.com>
Thu, 18 Oct 2018 10:49:27 -0700
changeset 490448 ce6fcc65a415d3bee52757e3d5a97216ad27daa7
parent 490447 9dee0572954bb34ae5466372dc5add368a5dba4c
child 490450 040f0e314fcf3251acc978a87a9597c8f25983d1
push id247
push userfmarier@mozilla.com
push dateSat, 27 Oct 2018 01:06:44 +0000
reviewersbc
bugs1500176
milestone64.0a1
Bug 1500176 - Annotate DMD perfherder results. r=bc This will split out AWSY results with DMD enabled from standard results, thus avoiding confusion due to a large discrepency in values due to DMD's overhead.
testing/awsy/awsy/process_perf_data.py
--- a/testing/awsy/awsy/process_perf_data.py
+++ b/testing/awsy/awsy/process_perf_data.py
@@ -77,20 +77,30 @@ def create_suite(name, node, data_path, 
     :param checkpoints: Which checkpoints to include.
     """
     suite = {
         'name': name,
         'subtests': [],
         'lowerIsBetter': True,
         'units': 'bytes'
     }
+
+    extra_opts = []
+    # The stylo attributes override each other.
     if 'STYLO_FORCE_ENABLED' in os.environ and os.environ['STYLO_FORCE_ENABLED']:
-        suite['extraOptions'] = ["stylo"]
+        extra_opts = ["stylo"]
     if 'STYLO_THREADS' in os.environ and os.environ['STYLO_THREADS'] == '1':
-        suite['extraOptions'] = ["stylo-sequential"]
+        extra_opts = ["stylo-sequential"]
+
+    if 'DMD' in os.environ and os.environ['DMD']:
+        extra_opts.append("dmd")
+
+    if extra_opts:
+        suite['extraOptions'] = extra_opts
+
     update_checkpoint_paths(glob.glob(os.path.join(data_path, "memory-report*")), checkpoints)
 
     total = 0
     for checkpoint in checkpoints:
         memory_report_path = os.path.join(data_path, checkpoint['path'])
 
         name_filter = checkpoint.get('name_filter', None)
         if checkpoint.get('median'):