Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(547)

Side by Side Diff: tools/telemetry/telemetry/page_benchmark_results.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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)
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/page_action.py ('k') | tools/telemetry/telemetry/page_benchmark_results_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698