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

Unified Diff: tools/perf/metrics/gpu_rendering_stats.py

Issue 22475007: telemetry: separated stats collection from metrics calculation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made GpuRenderingStats a class. Created 7 years, 4 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/measurements/smoothness.py ('k') | tools/perf/metrics/smoothness.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/metrics/gpu_rendering_stats.py
diff --git a/tools/perf/metrics/gpu_rendering_stats.py b/tools/perf/metrics/gpu_rendering_stats.py
new file mode 100644
index 0000000000000000000000000000000000000000..0211841c90b75e427d6bc234b390fd9ddbf64ff2
--- /dev/null
+++ b/tools/perf/metrics/gpu_rendering_stats.py
@@ -0,0 +1,47 @@
+# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+class GpuRenderingStats(object):
+ def __init__(self, rendering_stats_deltas):
+ rs = rendering_stats_deltas
+
+ # Scroll Stats
+ self.total_time = rs.get('totalTimeInSeconds', 0)
+ self.screen_frame_count = rs.get('numFramesSentToScreen', 0)
+ self.dropped_frame_count = rs.get('droppedFrameCount', 0)
+ self.impl_thread_scroll_count = rs.get('numImplThreadScrolls', 0)
+ self.main_thread_scroll_count = rs.get('numMainThreadScrolls', 0)
+ self.drawn_layers_count = rs.get('numLayersDrawn', 0)
+ self.missing_tile_count = rs.get('numMissingTiles', 0)
+
+ # Texture Upload Stats
+ self.texture_upload_count = rs.get('textureUploadCount', 0)
+ self.texture_upload_time = rs.get('totalTextureUploadTimeInSeconds', 0)
+ self.commit_count = rs.get('totalCommitCount', 0)
+ self.commit_time = rs.get('totalCommitTimeInSeconds', 0)
+
+ # Image Decoding Stats
+ self.deferred_image_decode_count = rs.get(
+ 'totalDeferredImageDecodeCount', 0)
+ self.deferred_image_decode_time = rs.get(
+ 'totalDeferredImageDecodeTimeInSeconds', 0)
+ self.deferred_image_cache_hits = rs.get(
+ 'totalDeferredImageCacheHitCount', 0)
+ self.image_gathering_count = rs.get('totalImageGatheringCount', 0)
+ self.image_gathering_time = rs.get('totalImageGatheringTimeInSeconds', 0)
+
+ # Tile Analysis Stats
+ self.tile_analysis_count = rs.get('totalTilesAnalyzed', 0)
+ self.tile_analysis_time = rs.get('totalTileAnalysisTimeInSeconds', 0)
+ self.solid_color_tile_analysis_count = rs.get('solidColorTilesAnalyzed', 0)
+
+ # Latency Stats
+ self.input_event_count = rs.get('inputEventCount', 0)
+ self.input_event_latency = rs.get('totalInputLatency', 0)
+ self.touch_ui_count = rs.get('touchUICount', 0)
+ self.touch_ui_latency = rs.get('totalTouchUILatency', 0)
+ self.touch_acked_count = rs.get('touchAckedCount', 0)
+ self.touch_acked_latency = rs.get('totalTouchAckedLatency', 0)
+ self.scroll_update_count = rs.get('scrollUpdateCount', 0)
+ self.scroll_update_latency = rs.get('totalScrollUpdateLatency', 0)
« no previous file with comments | « tools/perf/measurements/smoothness.py ('k') | tools/perf/metrics/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698