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

Side by Side Diff: tools/perf/measurements/rasterize_and_record_micro.py

Issue 225023031: Hack SkRecord in as an alternate recording mode in cc/resources/picture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 6 years, 7 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
« no previous file with comments | « skia/skia_library.gypi ('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 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 4
5 import sys 5 import sys
6 import time 6 import time
7 7
8 from telemetry.core.util import TimeoutException 8 from telemetry.core.util import TimeoutException
9 from telemetry.page import page_measurement 9 from telemetry.page import page_measurement
10 from telemetry.page import page_test 10 from telemetry.page import page_test
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 results.Add('record_time', 'ms', record_time) 99 results.Add('record_time', 'ms', record_time)
100 results.Add('pixels_rasterized', 'pixels', pixels_rasterized) 100 results.Add('pixels_rasterized', 'pixels', pixels_rasterized)
101 results.Add('rasterize_time', 'ms', rasterize_time) 101 results.Add('rasterize_time', 'ms', rasterize_time)
102 102
103 # TODO(skyostil): Remove this temporary workaround when reference build has 103 # TODO(skyostil): Remove this temporary workaround when reference build has
104 # been updated to branch 1931 or later. 104 # been updated to branch 1931 or later.
105 if ((self._chrome_branch_number and self._chrome_branch_number >= 1931) or 105 if ((self._chrome_branch_number and self._chrome_branch_number >= 1931) or
106 sys.platform == 'android'): 106 sys.platform == 'android'):
107 record_time_sk_null_canvas = data['record_time_sk_null_canvas_ms'] 107 record_time_sk_null_canvas = data['record_time_sk_null_canvas_ms']
108 record_time_painting_disabled = data['record_time_painting_disabled_ms'] 108 record_time_painting_disabled = data['record_time_painting_disabled_ms']
109 record_time_skrecord = data['record_time_skrecord_ms']
109 results.Add('record_time_sk_null_canvas', 'ms', 110 results.Add('record_time_sk_null_canvas', 'ms',
110 record_time_sk_null_canvas) 111 record_time_sk_null_canvas)
111 results.Add('record_time_painting_disabled', 'ms', 112 results.Add('record_time_painting_disabled', 'ms',
112 record_time_painting_disabled) 113 record_time_painting_disabled)
114 results.Add('record_time_skrecord', 'ms', record_time_skrecord)
113 115
114 if self.options.report_detailed_results: 116 if self.options.report_detailed_results:
115 pixels_rasterized_with_non_solid_color = \ 117 pixels_rasterized_with_non_solid_color = \
116 data['pixels_rasterized_with_non_solid_color'] 118 data['pixels_rasterized_with_non_solid_color']
117 pixels_rasterized_as_opaque = \ 119 pixels_rasterized_as_opaque = \
118 data['pixels_rasterized_as_opaque'] 120 data['pixels_rasterized_as_opaque']
119 total_layers = data['total_layers'] 121 total_layers = data['total_layers']
120 total_picture_layers = data['total_picture_layers'] 122 total_picture_layers = data['total_picture_layers']
121 total_picture_layers_with_no_content = \ 123 total_picture_layers_with_no_content = \
122 data['total_picture_layers_with_no_content'] 124 data['total_picture_layers_with_no_content']
123 total_picture_layers_off_screen = \ 125 total_picture_layers_off_screen = \
124 data['total_picture_layers_off_screen'] 126 data['total_picture_layers_off_screen']
125 127
126 results.Add('pixels_rasterized_with_non_solid_color', 'pixels', 128 results.Add('pixels_rasterized_with_non_solid_color', 'pixels',
127 pixels_rasterized_with_non_solid_color) 129 pixels_rasterized_with_non_solid_color)
128 results.Add('pixels_rasterized_as_opaque', 'pixels', 130 results.Add('pixels_rasterized_as_opaque', 'pixels',
129 pixels_rasterized_as_opaque) 131 pixels_rasterized_as_opaque)
130 results.Add('total_layers', 'count', total_layers) 132 results.Add('total_layers', 'count', total_layers)
131 results.Add('total_picture_layers', 'count', total_picture_layers) 133 results.Add('total_picture_layers', 'count', total_picture_layers)
132 results.Add('total_picture_layers_with_no_content', 'count', 134 results.Add('total_picture_layers_with_no_content', 'count',
133 total_picture_layers_with_no_content) 135 total_picture_layers_with_no_content)
134 results.Add('total_picture_layers_off_screen', 'count', 136 results.Add('total_picture_layers_off_screen', 'count',
135 total_picture_layers_off_screen) 137 total_picture_layers_off_screen)
OLDNEW
« no previous file with comments | « skia/skia_library.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698