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

Side by Side Diff: runtime/observatory/lib/src/app/application.dart

Issue 1293383011: Add an IsolateRunnable event to the service protocol. Improve service docs. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/elements/debugger.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 app; 5 part of app;
6 6
7 class Notification { 7 class Notification {
8 Notification.fromEvent(this.event); 8 Notification.fromEvent(this.event);
9 Notification.fromException(this.exception, this.stacktrace); 9 Notification.fromException(this.exception, this.stacktrace);
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 var event = notification.event; 82 var event = notification.event;
83 return (event != null && 83 return (event != null &&
84 event.isolate == isolate && 84 event.isolate == isolate &&
85 event.isPauseEvent); 85 event.isPauseEvent);
86 }); 86 });
87 } 87 }
88 88
89 void _onEvent(ServiceEvent event) { 89 void _onEvent(ServiceEvent event) {
90 switch(event.kind) { 90 switch(event.kind) {
91 case ServiceEvent.kIsolateStart: 91 case ServiceEvent.kIsolateStart:
92 case ServiceEvent.kIsolateRunnable:
92 case ServiceEvent.kIsolateUpdate: 93 case ServiceEvent.kIsolateUpdate:
93 case ServiceEvent.kBreakpointAdded: 94 case ServiceEvent.kBreakpointAdded:
94 case ServiceEvent.kBreakpointResolved: 95 case ServiceEvent.kBreakpointResolved:
95 case ServiceEvent.kBreakpointRemoved: 96 case ServiceEvent.kBreakpointRemoved:
96 case ServiceEvent.kDebuggerSettingsUpdate: 97 case ServiceEvent.kDebuggerSettingsUpdate:
97 // Ignore for now. 98 // Ignore for now.
98 break; 99 break;
99 100
100 case ServiceEvent.kIsolateExit: 101 case ServiceEvent.kIsolateExit:
101 case ServiceEvent.kResume: 102 case ServiceEvent.kResume:
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 224
224 void handleException(e, st) { 225 void handleException(e, st) {
225 // TODO(turnidge): Report this failure via analytics. 226 // TODO(turnidge): Report this failure via analytics.
226 Logger.root.warning('Caught exception: ${e}\n${st}'); 227 Logger.root.warning('Caught exception: ${e}\n${st}');
227 notifications.add(new Notification.fromException(e, st)); 228 notifications.add(new Notification.fromException(e, st));
228 } 229 }
229 230
230 // This map keeps track of which curly-blocks have been expanded by the user. 231 // This map keeps track of which curly-blocks have been expanded by the user.
231 Map<String,bool> expansions = {}; 232 Map<String,bool> expansions = {};
232 } 233 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/elements/debugger.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698