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

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/views/printing.py

Issue 17564007: Clean up remaining DumpRenderTree references and flags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix handling of the default None option for --driver-name Created 7 years, 6 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
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved. 1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 for worker_name in stats: 170 for worker_name in stats:
171 self._print_debug(" %10s: %5d tests, %6.2f secs" % (worker_name, stats[worker_name]['num_tests'], stats[worker_name]['total_time'])) 171 self._print_debug(" %10s: %5d tests, %6.2f secs" % (worker_name, stats[worker_name]['num_tests'], stats[worker_name]['total_time']))
172 self._print_debug(" %6.2f cumulative, %6.2f optimal" % (cuml_time, cum l_time / num_workers)) 172 self._print_debug(" %6.2f cumulative, %6.2f optimal" % (cuml_time, cum l_time / num_workers))
173 self._print_debug("") 173 self._print_debug("")
174 174
175 def _print_aggregate_test_statistics(self, run_results): 175 def _print_aggregate_test_statistics(self, run_results):
176 times_for_dump_render_tree = [result.test_run_time for result in run_res ults.results_by_name.values()] 176 times_for_dump_render_tree = [result.test_run_time for result in run_res ults.results_by_name.values()]
177 self._print_statistics_for_test_timings("PER TEST TIME IN TESTSHELL (sec onds):", times_for_dump_render_tree) 177 self._print_statistics_for_test_timings("PER TEST TIME IN TESTSHELL (sec onds):", times_for_dump_render_tree)
178 178
179 def _print_individual_test_times(self, run_results): 179 def _print_individual_test_times(self, run_results):
180 # Reverse-sort by the time spent in DumpRenderTree. 180 # Reverse-sort by the time spent in the driver.
181 181
182 individual_test_timings = sorted(run_results.results_by_name.values(), k ey=lambda result: result.test_run_time, reverse=True) 182 individual_test_timings = sorted(run_results.results_by_name.values(), k ey=lambda result: result.test_run_time, reverse=True)
183 num_printed = 0 183 num_printed = 0
184 slow_tests = [] 184 slow_tests = []
185 timeout_or_crash_tests = [] 185 timeout_or_crash_tests = []
186 unexpected_slow_tests = [] 186 unexpected_slow_tests = []
187 for test_tuple in individual_test_timings: 187 for test_tuple in individual_test_timings:
188 test_name = test_tuple.test_name 188 test_name = test_tuple.test_name
189 is_timeout_crash_or_slow = False 189 is_timeout_crash_or_slow = False
190 if test_name in run_results.slow_tests: 190 if test_name in run_results.slow_tests:
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 self.writeln(msg) 400 self.writeln(msg)
401 401
402 def write_update(self, msg): 402 def write_update(self, msg):
403 self._meter.write_update(msg) 403 self._meter.write_update(msg)
404 404
405 def writeln(self, msg): 405 def writeln(self, msg):
406 self._meter.writeln(msg) 406 self._meter.writeln(msg)
407 407
408 def flush(self): 408 def flush(self):
409 self._meter.flush() 409 self._meter.flush()
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698