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

Side by Side Diff: ui/events/mojo/latency_info.mojom

Issue 2768393002: Adding first_event_time and last_event_time to LatencyInfo mojom. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | ui/events/mojo/latency_info_struct_traits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 module ui.mojom; 5 module ui.mojom;
6 6
7 import "mojo/common/time.mojom"; 7 import "mojo/common/time.mojom";
8 import "ui/gfx/geometry/mojo/geometry.mojom"; 8 import "ui/gfx/geometry/mojo/geometry.mojom";
9 9
10 enum LatencyComponentType { 10 enum LatencyComponentType {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 struct LatencyComponent { 83 struct LatencyComponent {
84 // Nondecreasing number that can be used to determine what events happened 84 // Nondecreasing number that can be used to determine what events happened
85 // in the component at the time this struct was sent on to the next 85 // in the component at the time this struct was sent on to the next
86 // component. 86 // component.
87 int64 sequence_number; 87 int64 sequence_number;
88 // Average time of events that happened in this component. 88 // Average time of events that happened in this component.
89 mojo.common.mojom.TimeTicks event_time; 89 mojo.common.mojom.TimeTicks event_time;
90 // Count of events that happened in this component 90 // Count of events that happened in this component
91 uint32 event_count; 91 uint32 event_count;
92 // Time of the oldest event that happened in this component.
93 mojo.common.mojom.TimeTicks first_event_time;
94 // Time of the most recent event that happened in this component.
95 mojo.common.mojom.TimeTicks last_event_time;
92 }; 96 };
93 97
94 struct LatencyComponentPair { 98 struct LatencyComponentPair {
95 LatencyComponentId key; 99 LatencyComponentId key;
96 LatencyComponent value; 100 LatencyComponent value;
97 }; 101 };
98 102
99 // See ui/events/latency_info.h 103 // See ui/events/latency_info.h
100 struct LatencyInfo { 104 struct LatencyInfo {
101 string trace_name; 105 string trace_name;
102 array<LatencyComponentPair> latency_components; 106 array<LatencyComponentPair> latency_components;
103 array<gfx.mojom.PointF> input_coordinates; 107 array<gfx.mojom.PointF> input_coordinates;
104 int64 trace_id; 108 int64 trace_id;
105 bool coalesced; 109 bool coalesced;
106 bool terminated; 110 bool terminated;
107 }; 111 };
OLDNEW
« no previous file with comments | « no previous file | ui/events/mojo/latency_info_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698