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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/metrics/smoothness.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/smoothness.py
diff --git a/tools/perf/metrics/smoothness.py b/tools/perf/metrics/smoothness.py
index cfb19b093c372530fd0dee77365f7a69e65922b2..55101b05e9d7665b32fba6a878eee18f0b018b19 100644
--- a/tools/perf/metrics/smoothness.py
+++ b/tools/perf/metrics/smoothness.py
@@ -114,8 +114,8 @@ def CalcResults(benchmark_stats, results):
results.Add('mean_frame_time', 'ms',
Average(s.total_time, s.screen_frame_count, 1000, 3))
results.Add('dropped_percent', '%',
- Average(s.dropped_frame_count, s.screen_frame_count,
- 100, 1),
+ Average(s.dropped_frame_count,
+ s.screen_frame_count + s.dropped_frame_count, 100, 1),
data_type='unimportant')
results.Add('percent_impl_scrolled', '%',
Average(s.impl_thread_scroll_count,
« 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