| OLD | NEW |
| 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 Loading... |
| 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) |
| OLD | NEW |