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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1189543003: Ports page for isolates (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 service; 5 part of service;
6 6
7 /// An RpcException represents an exceptional event that happened 7 /// An RpcException represents an exceptional event that happened
8 /// while invoking an rpc. 8 /// while invoking an rpc.
9 abstract class RpcException implements Exception { 9 abstract class RpcException implements Exception {
10 RpcException(this.message); 10 RpcException(this.message);
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 } 877 }
878 878
879 /// Fetches and builds the class hierarchy for this isolate. Returns the 879 /// Fetches and builds the class hierarchy for this isolate. Returns the
880 /// Object class object. 880 /// Object class object.
881 Future<Class> getClassHierarchy() { 881 Future<Class> getClassHierarchy() {
882 return invokeRpc('getClassList', {}) 882 return invokeRpc('getClassList', {})
883 .then(_loadClasses) 883 .then(_loadClasses)
884 .then(_buildClassHierarchy); 884 .then(_buildClassHierarchy);
885 } 885 }
886 886
887 Future<ServiceObject> getPorts() {
888 return invokeRpc('_getPorts', {});
889 }
890
887 Future<List<Class>> getClassRefs() async { 891 Future<List<Class>> getClassRefs() async {
888 ServiceMap classList = await invokeRpc('getClassList', {}); 892 ServiceMap classList = await invokeRpc('getClassList', {});
889 assert(classList.type == 'ClassList'); 893 assert(classList.type == 'ClassList');
890 var classRefs = []; 894 var classRefs = [];
891 for (var cls in classList['classes']) { 895 for (var cls in classList['classes']) {
892 // Skip over non-class classes. 896 // Skip over non-class classes.
893 if (cls is Class) { 897 if (cls is Class) {
894 _classesByCid[cls.vmCid] = cls; 898 _classesByCid[cls.vmCid] = cls;
895 classRefs.add(cls); 899 classRefs.add(cls);
896 } 900 }
(...skipping 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after
3345 var v = list[i]; 3349 var v = list[i];
3346 if ((v is ObservableMap) && _isServiceMap(v)) { 3350 if ((v is ObservableMap) && _isServiceMap(v)) {
3347 list[i] = owner.getFromMap(v); 3351 list[i] = owner.getFromMap(v);
3348 } else if (v is ObservableList) { 3352 } else if (v is ObservableList) {
3349 _upgradeObservableList(v, owner); 3353 _upgradeObservableList(v, owner);
3350 } else if (v is ObservableMap) { 3354 } else if (v is ObservableMap) {
3351 _upgradeObservableMap(v, owner); 3355 _upgradeObservableMap(v, owner);
3352 } 3356 }
3353 } 3357 }
3354 } 3358 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698