| OLD | NEW |
| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 OTHER, | 83 OTHER, |
| 84 SOURCE_EVENT_TYPE_LAST = OTHER, | 84 SOURCE_EVENT_TYPE_LAST = OTHER, |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 struct LatencyComponentId { | 87 struct LatencyComponentId { |
| 88 LatencyComponentType type; | 88 LatencyComponentType type; |
| 89 int64 id; | 89 int64 id; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 struct LatencyComponent { | 92 struct LatencyComponent { |
| 93 // Nondecreasing number that can be used to determine what events happened | |
| 94 // in the component at the time this struct was sent on to the next | |
| 95 // component. | |
| 96 int64 sequence_number; | |
| 97 // Average time of events that happened in this component. | 93 // Average time of events that happened in this component. |
| 98 mojo.common.mojom.TimeTicks event_time; | 94 mojo.common.mojom.TimeTicks event_time; |
| 99 // Count of events that happened in this component | 95 // Count of events that happened in this component |
| 100 uint32 event_count; | 96 uint32 event_count; |
| 101 // Time of the oldest event that happened in this component. | 97 // Time of the oldest event that happened in this component. |
| 102 mojo.common.mojom.TimeTicks first_event_time; | 98 mojo.common.mojom.TimeTicks first_event_time; |
| 103 // Time of the most recent event that happened in this component. | 99 // Time of the most recent event that happened in this component. |
| 104 mojo.common.mojom.TimeTicks last_event_time; | 100 mojo.common.mojom.TimeTicks last_event_time; |
| 105 }; | 101 }; |
| 106 | 102 |
| 107 struct LatencyComponentPair { | 103 struct LatencyComponentPair { |
| 108 LatencyComponentId key; | 104 LatencyComponentId key; |
| 109 LatencyComponent value; | 105 LatencyComponent value; |
| 110 }; | 106 }; |
| 111 | 107 |
| 112 // See ui/latency/latency_info.h | 108 // See ui/latency/latency_info.h |
| 113 struct LatencyInfo { | 109 struct LatencyInfo { |
| 114 string trace_name; | 110 string trace_name; |
| 115 array<LatencyComponentPair> latency_components; | 111 array<LatencyComponentPair> latency_components; |
| 116 int64 trace_id; | 112 int64 trace_id; |
| 117 bool coalesced; | 113 bool coalesced; |
| 118 bool began; | 114 bool began; |
| 119 bool terminated; | 115 bool terminated; |
| 120 SourceEventType source_event_type; | 116 SourceEventType source_event_type; |
| 121 mojo.common.mojom.TimeDelta expected_queueing_time_on_dispatch; | 117 mojo.common.mojom.TimeDelta expected_queueing_time_on_dispatch; |
| 122 }; | 118 }; |
| OLD | NEW |