Index: tools/perf/measurements/rasterize_and_record.py |
=================================================================== |
--- tools/perf/measurements/rasterize_and_record.py (revision 222891) |
+++ tools/perf/measurements/rasterize_and_record.py (working copy) |
@@ -5,8 +5,13 @@ |
import time |
from metrics import smoothness |
+from telemetry.core import util |
from telemetry.page import page_measurement |
+# Get build scripts into our path. |
+util.AddDirToPythonPath(util.GetChromiumSrcDir(), 'build', 'util', 'lib') |
+from common import perf_result_data_type # pylint: disable=F0401 |
+ |
class StatsCollector(object): |
def __init__(self, timeline): |
""" |
@@ -177,16 +182,16 @@ |
results.Add('best_rasterize_time', 'seconds', |
collector.total_best_rasterize_time / 1.e3, |
- data_type='unimportant') |
+ data_type=perf_result_data_type.UNIMPORTANT) |
results.Add('best_record_time', 'seconds', |
collector.total_best_record_time / 1.e3, |
- data_type='unimportant') |
+ data_type=perf_result_data_type.UNIMPORTANT) |
results.Add('total_pixels_rasterized', 'pixels', |
collector.total_pixels_rasterized, |
- data_type='unimportant') |
+ data_type=perf_result_data_type.UNIMPORTANT) |
results.Add('total_pixels_recorded', 'pixels', |
collector.total_pixels_recorded, |
- data_type='unimportant') |
+ data_type=perf_result_data_type.UNIMPORTANT) |
if self.options.report_all_results: |
for k, v in rendering_stats.iteritems(): |