| 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 /// The owner of this [ServiceObject]. This can be an [Isolate], a | 10 /// The owner of this [ServiceObject]. This can be an [Isolate], a |
| (...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1102 fields.addAll(map['fields']); | 1102 fields.addAll(map['fields']); |
| 1103 | 1103 |
| 1104 functions.clear(); | 1104 functions.clear(); |
| 1105 functions.addAll(map['functions']); | 1105 functions.addAll(map['functions']); |
| 1106 | 1106 |
| 1107 superClass = map['super']; | 1107 superClass = map['super']; |
| 1108 if (superClass != null) { | 1108 if (superClass != null) { |
| 1109 superClass._addToChildren(this); | 1109 superClass._addToChildren(this); |
| 1110 } | 1110 } |
| 1111 error = map['error']; | 1111 error = map['error']; |
| 1112 |
| 1113 var allocationStats = map['allocationStats']; |
| 1114 if (allocationStats != null) { |
| 1115 newSpace.update(allocationStats['new']); |
| 1116 oldSpace.update(allocationStats['old']); |
| 1117 } |
| 1112 } | 1118 } |
| 1113 | 1119 |
| 1114 void _addToChildren(Class cls) { | 1120 void _addToChildren(Class cls) { |
| 1115 if (children.contains(cls)) { | 1121 if (children.contains(cls)) { |
| 1116 return; | 1122 return; |
| 1117 } | 1123 } |
| 1118 children.add(cls); | 1124 children.add(cls); |
| 1119 } | 1125 } |
| 1120 } | 1126 } |
| 1121 | 1127 |
| (...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1800 var v = list[i]; | 1806 var v = list[i]; |
| 1801 if ((v is ObservableMap) && _isServiceMap(v)) { | 1807 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 1802 list[i] = owner.getFromMap(v); | 1808 list[i] = owner.getFromMap(v); |
| 1803 } else if (v is ObservableList) { | 1809 } else if (v is ObservableList) { |
| 1804 _upgradeObservableList(v, owner); | 1810 _upgradeObservableList(v, owner); |
| 1805 } else if (v is ObservableMap) { | 1811 } else if (v is ObservableMap) { |
| 1806 _upgradeObservableMap(v, owner); | 1812 _upgradeObservableMap(v, owner); |
| 1807 } | 1813 } |
| 1808 } | 1814 } |
| 1809 } | 1815 } |
| OLD | NEW |