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

Unified Diff: runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart

Issue 59283007: List scripts in library and display script source (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart
diff --git a/runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart b/runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart
index 93cba6546166282bb7cb661c2f6123ec18ade3fd..1471450d7b2df617e02e441c6327bab9e4a01428 100644
--- a/runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart
+++ b/runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart
@@ -24,6 +24,15 @@ class IsolateManager extends Observable {
});
}
+ Isolate getIsolate(int id) {
+ Isolate isolate = isolates[id];
+ if (isolate == null) {
+ isolate = new Isolate(id, '');
+ isolates[id] = isolate;
+ }
+ return isolate;
+ }
+
void _updateIsolates(List<Map> members) {
// Find dead isolates.
var deadIsolates = [];
@@ -43,6 +52,8 @@ class IsolateManager extends Observable {
if (isolates[id] == null) {
var isolate = new Isolate(id, name);
isolates[id] = isolate;
+ } else {
+ isolates[id].name = name;
}
});
}

Powered by Google App Engine
This is Rietveld 408576698