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

Side by Side Diff: ui/base/latency_info.h

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, 5 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 #ifndef UI_BASE_LATENCY_INFO_H_ 5 #ifndef UI_BASE_LATENCY_INFO_H_
6 #define UI_BASE_LATENCY_INFO_H_ 6 #define UI_BASE_LATENCY_INFO_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 13 matching lines...) Expand all
24 // events is sent from RWH to renderer. In non-aura platform, 24 // events is sent from RWH to renderer. In non-aura platform,
25 // INPUT_EVENT_LATENCY_RWH_COMPONENT is the same as 25 // INPUT_EVENT_LATENCY_RWH_COMPONENT is the same as
26 // INPUT_EVENT_LATENCY_INJECTED_RWH_COMPONENT. 26 // INPUT_EVENT_LATENCY_INJECTED_RWH_COMPONENT.
27 INPUT_EVENT_LATENCY_INJECTED_RWH_COMPONENT, 27 INPUT_EVENT_LATENCY_INJECTED_RWH_COMPONENT,
28 // Original timestamp for input event (e.g. timestamp from kernel). 28 // Original timestamp for input event (e.g. timestamp from kernel).
29 INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT, 29 INPUT_EVENT_LATENCY_ORIGINAL_COMPONENT,
30 // Timestamp when the UI event is created. 30 // Timestamp when the UI event is created.
31 INPUT_EVENT_LATENCY_UI_COMPONENT, 31 INPUT_EVENT_LATENCY_UI_COMPONENT,
32 // Timestamp when the event is acked from renderer. This is currently set 32 // Timestamp when the event is acked from renderer. This is currently set
33 // only for touch events. 33 // only for touch events.
34 INPUT_EVENT_LATENCY_ACKED_COMPONENT 34 INPUT_EVENT_LATENCY_ACKED_COMPONENT,
35 // Timestamp when the event is sent from the impl to main renderer thread.
36 INPUT_EVENT_LATENCY_SENT_FROM_IMPL_THREAD_COMPONENT,
37 // Timestamp when the event is received on the main thread.
38 INPUT_EVENT_LATENCY_RECEIVED_ON_MAIN_THREAD_COMPONENT,
35 }; 39 };
36 40
37 struct UI_EXPORT LatencyInfo { 41 struct UI_EXPORT LatencyInfo {
38 struct LatencyComponent { 42 struct LatencyComponent {
39 // Nondecreasing number that can be used to determine what events happened 43 // Nondecreasing number that can be used to determine what events happened
40 // in the component at the time this struct was sent on to the next 44 // in the component at the time this struct was sent on to the next
41 // component. 45 // component.
42 int64 sequence_number; 46 int64 sequence_number;
43 // Average time of events that happened in this component. 47 // Average time of events that happened in this component.
44 base::TimeTicks event_time; 48 base::TimeTicks event_time;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 87
84 LatencyMap latency_components; 88 LatencyMap latency_components;
85 89
86 // This represents the final time that a frame is displayed it. 90 // This represents the final time that a frame is displayed it.
87 base::TimeTicks swap_timestamp; 91 base::TimeTicks swap_timestamp;
88 }; 92 };
89 93
90 } // namespace ui 94 } // namespace ui
91 95
92 #endif // UI_BASE_LATENCY_INFO_H_ 96 #endif // UI_BASE_LATENCY_INFO_H_
OLDNEW
« content/renderer/render_widget.cc ('K') | « tools/perf/measurements/smoothness.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698