| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 part of models; | 5 part of models; |
| 6 | 6 |
| 7 abstract class Event { | 7 abstract class Event { |
| 8 /// The timestamp (in milliseconds since the epoch) associated with this | 8 /// The timestamp (in milliseconds since the epoch) associated with this |
| 9 /// event. For some isolate pause events, the timestamp is from when the | 9 /// event. For some isolate pause events, the timestamp is from when the |
| 10 /// isolate was paused. For other events, the timestamp is from when the | 10 /// isolate was paused. For other events, the timestamp is from when the |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 | 125 |
| 126 abstract class ExtensionEvent extends Event { | 126 abstract class ExtensionEvent extends Event { |
| 127 /// The isolate with which this event is associated. | 127 /// The isolate with which this event is associated. |
| 128 IsolateRef get isolate; | 128 IsolateRef get isolate; |
| 129 /// The extension event kind. | 129 /// The extension event kind. |
| 130 String get extensionKind; | 130 String get extensionKind; |
| 131 /// The extension event data. | 131 /// The extension event data. |
| 132 ExtensionData get extensionData; | 132 ExtensionData get extensionData; |
| 133 } | 133 } |
| 134 | 134 |
| 135 abstract class LoggingEvent extends Event { |
| 136 /// The isolate with which this event is associated. |
| 137 IsolateRef get isolate; |
| 138 |
| 139 // TODO(cbernaschina) objectify |
| 140 Map get logRecord; |
| 141 } |
| 142 |
| 135 abstract class TimelineEventsEvent extends Event { | 143 abstract class TimelineEventsEvent extends Event { |
| 136 /// The isolate with which this event is associated. | 144 /// The isolate with which this event is associated. |
| 137 IsolateRef get isolate; | 145 IsolateRef get isolate; |
| 138 /// An array of TimelineEvents | 146 /// An array of TimelineEvents |
| 139 Iterable<TimelineEvent> get timelineEvents; | 147 Iterable<TimelineEvent> get timelineEvents; |
| 140 } | 148 } |
| 141 | 149 |
| 142 abstract class ConnectionClosedEvent extends Event { | 150 abstract class ConnectionClosedEvent extends Event { |
| 143 /// The reason of the closed connection | 151 /// The reason of the closed connection |
| 144 String get reason; | 152 String get reason; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 162 | 170 |
| 163 bool isAtAsyncSuspension(DebugEvent event) { | 171 bool isAtAsyncSuspension(DebugEvent event) { |
| 164 if (event is PauseBreakpointEvent) { | 172 if (event is PauseBreakpointEvent) { |
| 165 return event.atAsyncSuspension; | 173 return event.atAsyncSuspension; |
| 166 } | 174 } |
| 167 if (event is PauseInterruptedEvent) { | 175 if (event is PauseInterruptedEvent) { |
| 168 return event.atAsyncSuspension; | 176 return event.atAsyncSuspension; |
| 169 } | 177 } |
| 170 return false; | 178 return false; |
| 171 } | 179 } |
| OLD | NEW |