OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 from collections import defaultdict | 4 from collections import defaultdict |
5 from telemetry.page_test import PageTestResults | 5 from telemetry.page_test import PageTestResults |
6 from telemetry.perf_tests_helper import PrintPerfResult | 6 from telemetry.perf_tests_helper import PrintPerfResult |
7 from telemetry.page_benchmark_value import PageBenchmarkValue | 7 from telemetry.page_benchmark_value import PageBenchmarkValue |
8 | 8 |
9 class ValuesForSinglePage(object): | 9 class ValuesForSinglePage(object): |
10 def __init__(self, page): | 10 def __init__(self, page): |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 if not trace_tag: | 143 if not trace_tag: |
144 for value, url in value_url_list: | 144 for value, url in value_url_list: |
145 self._PrintPerfResult(measurement + '_by_url', url, [value], units, | 145 self._PrintPerfResult(measurement + '_by_url', url, [value], units, |
146 by_url_data_type) | 146 by_url_data_type) |
147 | 147 |
148 # For histograms, we don't print the average data, only the _by_url. | 148 # For histograms, we don't print the average data, only the _by_url. |
149 if not data_type == 'histogram': | 149 if not data_type == 'histogram': |
150 values = [i[0] for i in value_url_list] | 150 values = [i[0] for i in value_url_list] |
151 self._PrintPerfResult(measurement, trace, values, units, data_type) | 151 self._PrintPerfResult(measurement, trace, values, units, data_type) |
OLD | NEW |