| OLD | NEW |
| 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 /// A [ServiceObject] is an object known to the VM service and is tied | 7 /// A [ServiceObject] is an object known to the VM service and is tied |
| 8 /// to an owning [Isolate]. | 8 /// to an owning [Isolate]. |
| 9 abstract class ServiceObject extends Observable { | 9 abstract class ServiceObject extends Observable { |
| 10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { | 10 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { |
| (...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 Future<ServiceObject> getInboundReferences(ServiceObject target, var limit) { | 1300 Future<ServiceObject> getInboundReferences(ServiceObject target, var limit) { |
| 1301 Map params = { | 1301 Map params = { |
| 1302 'targetId': target.id, | 1302 'targetId': target.id, |
| 1303 'limit': limit.toString(), | 1303 'limit': limit.toString(), |
| 1304 }; | 1304 }; |
| 1305 return invokeRpc('getInboundReferences', params); | 1305 return invokeRpc('getInboundReferences', params); |
| 1306 } | 1306 } |
| 1307 | 1307 |
| 1308 Future<ServiceObject> getTypeArgumentsList(bool onlyWithInstantiations) { |
| 1309 Map params = { |
| 1310 'onlyWithInstantiations': onlyWithInstantiations, |
| 1311 }; |
| 1312 return invokeRpc('getTypeArgumentsList', params); |
| 1313 } |
| 1314 |
| 1308 Future<ServiceObject> getInstances(Class cls, var limit) { | 1315 Future<ServiceObject> getInstances(Class cls, var limit) { |
| 1309 Map params = { | 1316 Map params = { |
| 1310 'classId': cls.id, | 1317 'classId': cls.id, |
| 1311 'limit': limit.toString(), | 1318 'limit': limit.toString(), |
| 1312 }; | 1319 }; |
| 1313 return invokeRpc('getInstances', params); | 1320 return invokeRpc('getInstances', params); |
| 1314 } | 1321 } |
| 1315 | 1322 |
| 1316 final ObservableMap<String, ServiceMetric> dartMetrics = | 1323 final ObservableMap<String, ServiceMetric> dartMetrics = |
| 1317 new ObservableMap<String, ServiceMetric>(); | 1324 new ObservableMap<String, ServiceMetric>(); |
| (...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2931 var v = list[i]; | 2938 var v = list[i]; |
| 2932 if ((v is ObservableMap) && _isServiceMap(v)) { | 2939 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 2933 list[i] = owner.getFromMap(v); | 2940 list[i] = owner.getFromMap(v); |
| 2934 } else if (v is ObservableList) { | 2941 } else if (v is ObservableList) { |
| 2935 _upgradeObservableList(v, owner); | 2942 _upgradeObservableList(v, owner); |
| 2936 } else if (v is ObservableMap) { | 2943 } else if (v is ObservableMap) { |
| 2937 _upgradeObservableMap(v, owner); | 2944 _upgradeObservableMap(v, owner); |
| 2938 } | 2945 } |
| 2939 } | 2946 } |
| 2940 } | 2947 } |
| OLD | NEW |