Index: tools/perf/benchmarks/sunspider.py |
=================================================================== |
--- tools/perf/benchmarks/sunspider.py (revision 222891) |
+++ tools/perf/benchmarks/sunspider.py (working copy) |
@@ -10,7 +10,11 @@ |
from telemetry.page import page_measurement |
from telemetry.page import page_set |
+# Get build scripts into our path. |
+util.AddDirToPythonPath(util.GetChromiumSrcDir(), 'build', 'util', 'lib') |
+from common import perf_result_data_type # pylint: disable=F0401 |
+ |
class SunspiderMeasurement(page_measurement.PageMeasurement): |
def MeasurePage(self, _, tab, results): |
js_is_done = ('window.location.pathname.indexOf("results.html") >= 0' |
@@ -33,7 +37,8 @@ |
total += value |
totals.append(total) |
for key, values in r.iteritems(): |
- results.Add(key, 'ms', values, data_type='unimportant') |
+ results.Add(key, 'ms', values, |
+ data_type=perf_result_data_type.UNIMPORTANT) |
results.Add('Total', 'ms', totals) |