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

Side by Side Diff: runtime/observatory/lib/src/models/objects/event.dart

Issue 2299893003: Converted Observatory logging-page element (Closed)
Patch Set: Updated observatory_sources.gypi Created 4 years, 3 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/logging_list.dart ('k') | runtime/observatory/lib/src/models/repositories/event.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698