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

Side by Side Diff: runtime/observatory/lib/event.dart

Issue 2411153002: Make reloadSources service RPC public (Closed)
Patch Set: turnidge review Created 4 years, 2 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 | runtime/observatory/lib/src/models/objects/event.dart » ('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 (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 import 'package:logging/logging.dart'; 5 import 'package:logging/logging.dart';
6 import 'package:observatory/models.dart' as M; 6 import 'package:observatory/models.dart' as M;
7 import 'package:observatory/service.dart' as S; 7 import 'package:observatory/service.dart' as S;
8 8
9 class VMUpdateEvent implements M.VMUpdateEvent { 9 class VMUpdateEvent implements M.VMUpdateEvent {
10 final DateTime timestamp; 10 final DateTime timestamp;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 final M.Frame topFrame; 131 final M.Frame topFrame;
132 final bool atAsyncSuspension; 132 final bool atAsyncSuspension;
133 PauseInterruptedEvent( 133 PauseInterruptedEvent(
134 this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension) { 134 this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension) {
135 assert(timestamp != null); 135 assert(timestamp != null);
136 assert(isolate != null); 136 assert(isolate != null);
137 assert(atAsyncSuspension != null); 137 assert(atAsyncSuspension != null);
138 } 138 }
139 } 139 }
140 140
141
142 class PausePostRequestEvent implements M.PauseInterruptedEvent {
143 final DateTime timestamp;
144 final M.IsolateRef isolate;
145 final M.Frame topFrame;
146 final bool atAsyncSuspension;
147 PausePostRequestEvent(
148 this.timestamp, this.isolate, this.topFrame, this.atAsyncSuspension) {
149 assert(timestamp != null);
150 assert(isolate != null);
151 assert(atAsyncSuspension != null);
152 }
153 }
154
155
141 class PauseExceptionEvent implements M.PauseExceptionEvent { 156 class PauseExceptionEvent implements M.PauseExceptionEvent {
142 final DateTime timestamp; 157 final DateTime timestamp;
143 final M.IsolateRef isolate; 158 final M.IsolateRef isolate;
144 final M.Frame topFrame; 159 final M.Frame topFrame;
145 final M.InstanceRef exception; 160 final M.InstanceRef exception;
146 PauseExceptionEvent( 161 PauseExceptionEvent(
147 this.timestamp, this.isolate, this.topFrame, this.exception) { 162 this.timestamp, this.isolate, this.topFrame, this.exception) {
148 assert(timestamp != null); 163 assert(timestamp != null);
149 assert(isolate != null); 164 assert(isolate != null);
150 assert(topFrame != null); 165 assert(topFrame != null);
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 return new BreakpointRemovedEvent( 311 return new BreakpointRemovedEvent(
297 event.timestamp, event.isolate, event.breakpoint); 312 event.timestamp, event.isolate, event.breakpoint);
298 case S.ServiceEvent.kDebuggerSettingsUpdate: 313 case S.ServiceEvent.kDebuggerSettingsUpdate:
299 return new DebuggerSettingsUpdateEvent(event.timestamp, event.isolate); 314 return new DebuggerSettingsUpdateEvent(event.timestamp, event.isolate);
300 case S.ServiceEvent.kResume: 315 case S.ServiceEvent.kResume:
301 return new ResumeEvent(event.timestamp, event.isolate, event.topFrame); 316 return new ResumeEvent(event.timestamp, event.isolate, event.topFrame);
302 case S.ServiceEvent.kPauseStart: 317 case S.ServiceEvent.kPauseStart:
303 return new PauseStartEvent(event.timestamp, event.isolate); 318 return new PauseStartEvent(event.timestamp, event.isolate);
304 case S.ServiceEvent.kPauseExit: 319 case S.ServiceEvent.kPauseExit:
305 return new PauseExitEvent(event.timestamp, event.isolate); 320 return new PauseExitEvent(event.timestamp, event.isolate);
321 case S.ServiceEvent.kPausePostRequest:
322 return new PausePostRequestEvent(
323 event.timestamp,
324 event.isolate,
325 event.topFrame,
326 event.atAsyncSuspension);
306 case S.ServiceEvent.kPauseBreakpoint: 327 case S.ServiceEvent.kPauseBreakpoint:
307 return new PauseBreakpointEvent( 328 return new PauseBreakpointEvent(
308 event.timestamp, 329 event.timestamp,
309 event.isolate, 330 event.isolate,
310 event.pauseBreakpoints, 331 event.pauseBreakpoints,
311 event.topFrame, 332 event.topFrame,
312 event.atAsyncSuspension, 333 event.atAsyncSuspension,
313 event.breakpoint); 334 event.breakpoint);
314 case S.Isolate.kLoggingStream: 335 case S.Isolate.kLoggingStream:
315 return new LoggingEvent(event.timestamp, event.isolate, event.logRecord); 336 return new LoggingEvent(event.timestamp, event.isolate, event.logRecord);
316 case S.ServiceEvent.kPauseInterrupted: 337 case S.ServiceEvent.kPauseInterrupted:
317 return new PauseInterruptedEvent(event.timestamp, event.isolate, 338 return new PauseInterruptedEvent(event.timestamp, event.isolate,
318 event.topFrame, event.atAsyncSuspension); 339 event.topFrame, event.atAsyncSuspension);
319 case S.ServiceEvent.kPauseException: 340 case S.ServiceEvent.kPauseException:
320 return new PauseExceptionEvent( 341 return new PauseExceptionEvent(
321 event.timestamp, event.isolate, event.topFrame, event.exception); 342 event.timestamp, event.isolate, event.topFrame, event.exception);
322 case S.ServiceEvent.kInspect: 343 case S.ServiceEvent.kInspect:
323 return new InspectEvent(event.timestamp, event.isolate, event.inspectee); 344 return new InspectEvent(event.timestamp, event.isolate, event.inspectee);
324 case S.ServiceEvent.kGC: 345 case S.ServiceEvent.kGC:
325 return new GCEvent(event.timestamp, event.isolate); 346 return new GCEvent(event.timestamp, event.isolate);
326 case S.ServiceEvent.kNone: 347 case S.ServiceEvent.kNone:
327 return new NoneEvent(event.timestamp, event.isolate); 348 return new NoneEvent(event.timestamp, event.isolate);
328 default: 349 default:
329 // Ignore unrecognized events. 350 // Ignore unrecognized events.
330 Logger.root.severe('Unrecognized event: $event'); 351 Logger.root.severe('Unrecognized event: $event');
331 return null; 352 return null;
332 } 353 }
333 } 354 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/models/objects/event.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698