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

Side by Side Diff: tools/perf/perf_tools/painting_benchmark.py

Issue 11361165: [chrome_remote_control] Rename chrome_remote_control to telemetry. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/perf/perf_tools/kraken.py ('k') | tools/perf/perf_tools/robohornetpro.py » ('j') | 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) 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 chrome_remote_control import multi_page_benchmark 4 from telemetry import multi_page_benchmark
5 from perf_tools import scrolling_benchmark 5 from perf_tools import scrolling_benchmark
6 6
7 class PaintingBenchmark(scrolling_benchmark.ScrollingBenchmark): 7 class PaintingBenchmark(scrolling_benchmark.ScrollingBenchmark):
8 def __init__(self): 8 def __init__(self):
9 super(PaintingBenchmark, self).__init__() 9 super(PaintingBenchmark, self).__init__()
10 10
11 def _GetOrZero(self, stat, rendering_stats_deltas): 11 def _GetOrZero(self, stat, rendering_stats_deltas):
12 if stat in rendering_stats_deltas: 12 if stat in rendering_stats_deltas:
13 return rendering_stats_deltas[stat] 13 return rendering_stats_deltas[stat]
14 return 0 14 return 0
(...skipping 30 matching lines...) Expand all
45 results.Add('total_pixels_painted', '', totalPixelsPainted) 45 results.Add('total_pixels_painted', '', totalPixelsPainted)
46 results.Add('total_pixels_rasterized', '', totalPixelsRasterized) 46 results.Add('total_pixels_rasterized', '', totalPixelsRasterized)
47 results.Add('megapixels_painted_per_second', '', megapixelsPaintedPerSecond) 47 results.Add('megapixels_painted_per_second', '', megapixelsPaintedPerSecond)
48 results.Add('megapixels_rasterized_per_second', '', 48 results.Add('megapixels_rasterized_per_second', '',
49 megapixelsRasterizedPerSecond) 49 megapixelsRasterizedPerSecond)
50 results.Add('total_paint_and_rasterize_time', 'seconds', totalPaintTime + 50 results.Add('total_paint_and_rasterize_time', 'seconds', totalPaintTime +
51 totalRasterizeTime) 51 totalRasterizeTime)
52 52
53 def Main(): 53 def Main():
54 return multi_page_benchmark.Main(PaintingBenchmark()) 54 return multi_page_benchmark.Main(PaintingBenchmark())
OLDNEW
« no previous file with comments | « tools/perf/perf_tools/kraken.py ('k') | tools/perf/perf_tools/robohornetpro.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698