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

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

Issue 16213002: Add telemetry to track the time an event spent waiting for the main thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch 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 unified diff | Download patch | Annotate | Revision Log
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 4
5 class GpuRenderingStats(object): 5 class GpuRenderingStats(object):
6 def __init__(self, rendering_stats_deltas): 6 def __init__(self, rendering_stats_deltas):
7 rs = rendering_stats_deltas 7 rs = rendering_stats_deltas
8 8
9 # Scroll Stats 9 # Scroll Stats
10 self.total_time = rs.get('totalTimeInSeconds', 0) 10 self.total_time = rs.get('totalTimeInSeconds', 0)
(...skipping 27 matching lines...) Expand all
38 38
39 # Latency Stats 39 # Latency Stats
40 self.input_event_count = rs.get('inputEventCount', 0) 40 self.input_event_count = rs.get('inputEventCount', 0)
41 self.input_event_latency = rs.get('totalInputLatency', 0) 41 self.input_event_latency = rs.get('totalInputLatency', 0)
42 self.touch_ui_count = rs.get('touchUICount', 0) 42 self.touch_ui_count = rs.get('touchUICount', 0)
43 self.touch_ui_latency = rs.get('totalTouchUILatency', 0) 43 self.touch_ui_latency = rs.get('totalTouchUILatency', 0)
44 self.touch_acked_count = rs.get('touchAckedCount', 0) 44 self.touch_acked_count = rs.get('touchAckedCount', 0)
45 self.touch_acked_latency = rs.get('totalTouchAckedLatency', 0) 45 self.touch_acked_latency = rs.get('totalTouchAckedLatency', 0)
46 self.scroll_update_count = rs.get('scrollUpdateCount', 0) 46 self.scroll_update_count = rs.get('scrollUpdateCount', 0)
47 self.scroll_update_latency = rs.get('totalScrollUpdateLatency', 0) 47 self.scroll_update_latency = rs.get('totalScrollUpdateLatency', 0)
48 self.impl_to_main_touch_event_count = rs.get('implToMainTouchEventCount', 0)
49 self.total_impl_to_main_touch_event_latency = rs.get(
50 'totalImplToMainTouchEventLatency', 0)
51 self.impl_to_main_gesture_scroll_event_count = rs.get(
52 'implToMainGestureScrollEventCount', 0)
53 self.total_impl_to_main_gesture_scroll_event_latency = rs.get(
54 'totalImplToMainGestureScrollEventLatency', 0)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698