Bug 1625202 - Add mWh to available units for processing r=perftest-reviewers,sparky
authorFlorin Strugariu <fstrugariu@mozilla.com>
Thu, 26 Mar 2020 17:11:40 +0000
changeset 520633 9b0691360c54670250d56409e5e767a2fcf0c16e
parent 520632 03c0aa19b1b703e48b466734b60b83e26d4dd935
child 520634 942cf82e21982304603725eb51d6543caa144dd4
push id37254
push usernerli@mozilla.com
push dateFri, 27 Mar 2020 04:48:07 +0000
treeherdermozilla-central@2d758b42bd73 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersperftest-reviewers, sparky
bugs1625202
milestone76.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 1625202 - Add mWh to available units for processing r=perftest-reviewers,sparky Differential Revision: https://phabricator.services.mozilla.com/D68424
testing/raptor/raptor/output.py
--- a/testing/raptor/raptor/output.py
+++ b/testing/raptor/raptor/output.py
@@ -402,17 +402,17 @@ class PerftestOutput(object):
                     if "avg" in subtest:
                         allavgs.append(val)
                 if allavgs:
                     return sum(allavgs)
 
                 raise Exception(
                     "No average measurements found for supporting data with W, or MHz unit .")
 
-            if unit in ["KB", "mAh"]:
+            if unit in ["KB", "mAh", "mWh"]:
                 return sum(_filter(vals))
 
             raise NotImplementedError("Unit %s not suported" % unit)
 
         if len(vals) > 1:
             return round(filters.geometric_mean(_filter(vals)), 2)
 
         return round(filters.mean(_filter(vals)), 2)