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

Side by Side Diff: runtime/vm/service/vmservice.dart

Issue 1122503003: Display isolate message queue in Observatory debugger (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
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 library vmservice; 5 library vmservice;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:typed_data'; 10 import 'dart:typed_data';
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 runningIsolates.isolateStartup(portId, sp, name); 60 runningIsolates.isolateStartup(portId, sp, name);
61 break; 61 break;
62 case Constants.ISOLATE_SHUTDOWN_MESSAGE_ID: 62 case Constants.ISOLATE_SHUTDOWN_MESSAGE_ID:
63 runningIsolates.isolateShutdown(portId, sp); 63 runningIsolates.isolateShutdown(portId, sp);
64 break; 64 break;
65 } 65 }
66 } 66 }
67 67
68 void _exit() { 68 void _exit() {
69 isolateLifecyclePort.close(); 69 isolateLifecyclePort.close();
70 scriptLoadPort.close(); 70 scriptLoadPort.close();
turnidge 2015/05/04 17:47:13 Add a comment so I don't undo this fix again!
Cutch 2015/05/04 19:56:52 Done.
71 for (var client in clients) { 71 var clientsList = clients.toList();
72 for (var client in clientsList) {
72 client.close(); 73 client.close();
73 } 74 }
74 // Call embedder shutdown hook after the internal shutdown. 75 // Call embedder shutdown hook after the internal shutdown.
75 if (onShutdown != null) { 76 if (onShutdown != null) {
76 onShutdown(); 77 onShutdown();
77 } 78 }
78 _onExit(); 79 _onExit();
79 } 80 }
80 81
81 void messageHandler(message) { 82 void messageHandler(message) {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 } 211 }
211 212
212 void _registerIsolate(int port_id, SendPort sp, String name) { 213 void _registerIsolate(int port_id, SendPort sp, String name) {
213 var service = new VMService(); 214 var service = new VMService();
214 service.runningIsolates.isolateStartup(port_id, sp, name); 215 service.runningIsolates.isolateStartup(port_id, sp, name);
215 } 216 }
216 217
217 void _onStart() native "VMService_OnStart"; 218 void _onStart() native "VMService_OnStart";
218 219
219 void _onExit() native "VMService_OnExit"; 220 void _onExit() native "VMService_OnExit";
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698