Index: tools/telemetry/telemetry/page/html_page_measurement_results.py |
=================================================================== |
--- tools/telemetry/telemetry/page/html_page_measurement_results.py (revision 222891) |
+++ tools/telemetry/telemetry/page/html_page_measurement_results.py (working copy) |
@@ -11,8 +11,10 @@ |
from telemetry.core import util |
from telemetry.page import buildbot_page_measurement_results |
+# Get build scripts into our path. |
util.AddDirToPythonPath(util.GetChromiumSrcDir(), 'build', 'util') |
import lastchange # pylint: disable=F0401 |
+from common import perf_result_data_type # pylint: disable=F0401 |
_TEMPLATE_HTML_PATH = os.path.join( |
@@ -77,7 +79,7 @@ |
self._output_stream.truncate() |
def _PrintPerfResult(self, measurement, trace, values, units, |
- result_type='default'): |
+ result_type=perf_result_data_type.DEFAULT): |
super(HtmlPageMeasurementResults, self)._PrintPerfResult( |
measurement, trace, values, units, result_type) |
@@ -89,7 +91,7 @@ |
self._result_json['tests'][self._test_name]['metrics'][metric_name] = { |
'current': values, |
'units': units, |
- 'important': result_type == 'default' |
+ 'important': result_type == perf_result_data_type.DEFAULT |
} |
def PrintSummary(self): |