| 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 // Some value smaller than the object ring, so requesting a large array | 7 // Some value smaller than the object ring, so requesting a large array |
| 8 // doesn't result in an expired ref because the elements lapped it in the | 8 // doesn't result in an expired ref because the elements lapped it in the |
| 9 // object ring. | 9 // object ring. |
| 10 const int kDefaultFieldLimit = 100; | 10 const int kDefaultFieldLimit = 100; |
| (...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 final int parentListIndex; | 1113 final int parentListIndex; |
| 1114 final int parentWordOffset; | 1114 final int parentWordOffset; |
| 1115 | 1115 |
| 1116 RetainingPathItem(ServiceMap map) | 1116 RetainingPathItem(ServiceMap map) |
| 1117 : source = map['value'], | 1117 : source = map['value'], |
| 1118 parentField = map['parentField'], | 1118 parentField = map['parentField'], |
| 1119 parentListIndex = map['parentListIndex'], | 1119 parentListIndex = map['parentListIndex'], |
| 1120 parentWordOffset = map['_parentWordOffset']; | 1120 parentWordOffset = map['_parentWordOffset']; |
| 1121 } | 1121 } |
| 1122 | 1122 |
| 1123 class Ports implements M.Ports { |
| 1124 final Iterable<Port> elements; |
| 1125 |
| 1126 Ports(ServiceMap map) |
| 1127 : this.elements = map['ports'] |
| 1128 .map((rmap) => new Port(rmap)); |
| 1129 } |
| 1130 |
| 1131 class Port implements M.Port { |
| 1132 final String name; |
| 1133 final HeapObject handler; |
| 1134 |
| 1135 Port(ServiceMap map) |
| 1136 : name = map['name'], |
| 1137 handler = map['handler']; |
| 1138 } |
| 1139 |
| 1123 class HeapSpace extends Observable implements M.HeapSpace { | 1140 class HeapSpace extends Observable implements M.HeapSpace { |
| 1124 @observable int used = 0; | 1141 @observable int used = 0; |
| 1125 @observable int capacity = 0; | 1142 @observable int capacity = 0; |
| 1126 @observable int external = 0; | 1143 @observable int external = 0; |
| 1127 @observable int collections = 0; | 1144 @observable int collections = 0; |
| 1128 @observable double totalCollectionTimeInSeconds = 0.0; | 1145 @observable double totalCollectionTimeInSeconds = 0.0; |
| 1129 @observable double averageCollectionPeriodInMillis = 0.0; | 1146 @observable double averageCollectionPeriodInMillis = 0.0; |
| 1130 | 1147 |
| 1131 Duration get avgCollectionTime { | 1148 Duration get avgCollectionTime { |
| 1132 final mcs = totalCollectionTimeInSeconds * Duration.MICROSECONDS_PER_SECOND | 1149 final mcs = totalCollectionTimeInSeconds * Duration.MICROSECONDS_PER_SECOND |
| (...skipping 3162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4295 var v = list[i]; | 4312 var v = list[i]; |
| 4296 if ((v is ObservableMap) && _isServiceMap(v)) { | 4313 if ((v is ObservableMap) && _isServiceMap(v)) { |
| 4297 list[i] = owner.getFromMap(v); | 4314 list[i] = owner.getFromMap(v); |
| 4298 } else if (v is ObservableList) { | 4315 } else if (v is ObservableList) { |
| 4299 _upgradeObservableList(v, owner); | 4316 _upgradeObservableList(v, owner); |
| 4300 } else if (v is ObservableMap) { | 4317 } else if (v is ObservableMap) { |
| 4301 _upgradeObservableMap(v, owner); | 4318 _upgradeObservableMap(v, owner); |
| 4302 } | 4319 } |
| 4303 } | 4320 } |
| 4304 } | 4321 } |
| OLD | NEW |