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

Unified Diff: tools/perf/perf_tools/texture_upload_benchmark.py

Issue 11028021: cc: Improve frame/commit accounting (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Make it work in single tread mode. Get rid of active concept. Created 8 years, 2 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
Index: tools/perf/perf_tools/texture_upload_benchmark.py
diff --git a/tools/perf/perf_tools/texture_upload_benchmark.py b/tools/perf/perf_tools/texture_upload_benchmark.py
index c837f6a0337afb42b8f64dae9894a41dfffc4309..126a7103e8506d60268829d749389f9bac5661d8 100644
--- a/tools/perf/perf_tools/texture_upload_benchmark.py
+++ b/tools/perf/perf_tools/texture_upload_benchmark.py
@@ -20,5 +20,10 @@ class TextureUploadBenchmark(scrolling_benchmark.ScrollingBenchmark):
rendering_stats_deltas['textureUploadCount'])
results.Add('average_commit_time', 'ms', averageCommitTimeMs)
+ commitEfficiency = (
+ rendering_stats_deltas["totalCommitCount"] /
+ float(rendering_stats_deltas["vsyncCount"]))
+ results.Add('commit_efficiency', 'fraction', commitEfficiency)
+
def Main():
return multi_page_benchmark.Main(TextureUploadBenchmark())

Powered by Google App Engine
This is Rietveld 408576698