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

Unified Diff: tools/gpu/gpu_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: 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/gpu/gpu_tools/texture_upload_benchmark.py
diff --git a/tools/gpu/gpu_tools/texture_upload_benchmark.py b/tools/gpu/gpu_tools/texture_upload_benchmark.py
index f411c28b55b8b3dd10fb36bf14b11e684bb70450..71fbd4f9d2eb0669bb6e64f41ea0c607f1ea5b89 100644
--- a/tools/gpu/gpu_tools/texture_upload_benchmark.py
+++ b/tools/gpu/gpu_tools/texture_upload_benchmark.py
@@ -16,9 +16,19 @@ class TextureUploadBenchmark(scrolling_benchmark.ScrollingBenchmark):
1000 * rendering_stats_deltas['totalCommitTimeInSeconds'] /
rendering_stats_deltas['totalCommitCount'])
+ commitEfficiencyActive = (
+ rendering_stats_deltas["totalCommitCount"] /
+ float(rendering_stats_deltas["numActiveCSyncs"]))
+
+ commitEfficiency = (
+ rendering_stats_deltas["totalCommitCount"] /
+ float(rendering_stats_deltas["numCSyncs"]))
+
return {
'texture_upload_count': rendering_stats_deltas['textureUploadCount'],
- 'average_commit_time_ms': averageCommitTimeMs
+ 'average_commit_time_ms': averageCommitTimeMs,
+ 'commit_efficiency_active': commitEfficiencyActive,
+ 'commit_efficiency_total': commitEfficiency,
}
def Main():

Powered by Google App Engine
This is Rietveld 408576698