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

Side by Side Diff: tools/perf/metrics/smoothness.py

Issue 23998002: cc: Fixed computation of dropped frames. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 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 | « tools/perf/metrics/smoothness.js ('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 import os 4 import os
5 5
6 from telemetry.core import util 6 from telemetry.core import util
7 7
8 TIMELINE_MARKER = 'smoothness_scroll' 8 TIMELINE_MARKER = 'smoothness_scroll'
9 9
10 class SmoothnessMetrics(object): 10 class SmoothnessMetrics(object):
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 results.Add('first_paint', 'ms', round(first_paint_secs * 1000, 1)) 108 results.Add('first_paint', 'ms', round(first_paint_secs * 1000, 1))
109 109
110 def CalcResults(benchmark_stats, results): 110 def CalcResults(benchmark_stats, results):
111 s = benchmark_stats 111 s = benchmark_stats
112 112
113 # Scroll Results 113 # Scroll Results
114 results.Add('mean_frame_time', 'ms', 114 results.Add('mean_frame_time', 'ms',
115 Average(s.total_time, s.screen_frame_count, 1000, 3)) 115 Average(s.total_time, s.screen_frame_count, 1000, 3))
116 results.Add('dropped_percent', '%', 116 results.Add('dropped_percent', '%',
117 Average(s.dropped_frame_count, s.screen_frame_count, 117 Average(s.dropped_frame_count,
118 100, 1), 118 s.screen_frame_count + s.dropped_frame_count, 100, 1),
119 data_type='unimportant') 119 data_type='unimportant')
120 results.Add('percent_impl_scrolled', '%', 120 results.Add('percent_impl_scrolled', '%',
121 Average(s.impl_thread_scroll_count, 121 Average(s.impl_thread_scroll_count,
122 s.impl_thread_scroll_count + 122 s.impl_thread_scroll_count +
123 s.main_thread_scroll_count, 123 s.main_thread_scroll_count,
124 100, 1), 124 100, 1),
125 data_type='unimportant') 125 data_type='unimportant')
126 results.Add('average_num_layers_drawn', '', 126 results.Add('average_num_layers_drawn', '',
127 Average(s.drawn_layer_count, s.screen_frame_count, 1, 1), 127 Average(s.drawn_layer_count, s.screen_frame_count, 1, 1),
128 data_type='unimportant') 128 data_type='unimportant')
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 Average(s.touch_ui_latency, s.touch_ui_count, 1000, 3), 175 Average(s.touch_ui_latency, s.touch_ui_count, 1000, 3),
176 data_type='unimportant') 176 data_type='unimportant')
177 results.Add('average_touch_acked_latency', 'ms', 177 results.Add('average_touch_acked_latency', 'ms',
178 Average(s.touch_acked_latency, s.touch_acked_count, 178 Average(s.touch_acked_latency, s.touch_acked_count,
179 1000, 3), 179 1000, 3),
180 data_type='unimportant') 180 data_type='unimportant')
181 results.Add('average_scroll_update_latency', 'ms', 181 results.Add('average_scroll_update_latency', 'ms',
182 Average(s.scroll_update_latency, s.scroll_update_count, 182 Average(s.scroll_update_latency, s.scroll_update_count,
183 1000, 3), 183 1000, 3),
184 data_type='unimportant') 184 data_type='unimportant')
OLDNEW
« no previous file with comments | « tools/perf/metrics/smoothness.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698