| 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 app; | 5 part of app; |
| 6 | 6 |
| 7 AllocationProfileRepository _allocationProfileRepository | 7 AllocationProfileRepository _allocationProfileRepository |
| 8 = new AllocationProfileRepository(); | 8 = new AllocationProfileRepository(); |
| 9 ClassRepository _classRepository = new ClassRepository(); | 9 ClassRepository _classRepository = new ClassRepository(); |
| 10 ContextRepository _contextRepository = new ContextRepository(); | 10 ContextRepository _contextRepository = new ContextRepository(); |
| 11 FieldRepository _fieldRepository = new FieldRepository(); | 11 FieldRepository _fieldRepository = new FieldRepository(); |
| 12 HeapSnapshotRepository _heapSnapshotRepository | 12 HeapSnapshotRepository _heapSnapshotRepository |
| 13 = new HeapSnapshotRepository(); | 13 = new HeapSnapshotRepository(); |
| 14 ICDataRepository _icdataRepository = new ICDataRepository(); | 14 ICDataRepository _icdataRepository = new ICDataRepository(); |
| 15 InboundReferencesRepository _inboundReferencesRepository | 15 InboundReferencesRepository _inboundReferencesRepository |
| 16 = new InboundReferencesRepository(); | 16 = new InboundReferencesRepository(); |
| 17 InstanceRepository _instanceRepository = new InstanceRepository(); | 17 InstanceRepository _instanceRepository = new InstanceRepository(); |
| 18 IsolateSampleProfileRepository _isolateSampleProfileRepository | 18 IsolateSampleProfileRepository _isolateSampleProfileRepository |
| 19 = new IsolateSampleProfileRepository(); | 19 = new IsolateSampleProfileRepository(); |
| 20 MegamorphicCacheRepository _megamorphicCacheRepository | 20 MegamorphicCacheRepository _megamorphicCacheRepository |
| 21 = new MegamorphicCacheRepository(); | 21 = new MegamorphicCacheRepository(); |
| 22 ObjectPoolRepository _objectPoolRepository |
| 23 = new ObjectPoolRepository(); |
| 22 ObjectStoreRepository _objectstoreRepository | 24 ObjectStoreRepository _objectstoreRepository |
| 23 = new ObjectStoreRepository(); | 25 = new ObjectStoreRepository(); |
| 24 PersistentHandlesRepository _persistentHandlesRepository | 26 PersistentHandlesRepository _persistentHandlesRepository |
| 25 = new PersistentHandlesRepository(); | 27 = new PersistentHandlesRepository(); |
| 26 PortsRepository _portsRepository = new PortsRepository(); | 28 PortsRepository _portsRepository = new PortsRepository(); |
| 27 ScriptRepository _scriptRepository = new ScriptRepository(); | 29 ScriptRepository _scriptRepository = new ScriptRepository(); |
| 28 | 30 |
| 29 class IsolateNotFound implements Exception { | 31 class IsolateNotFound implements Exception { |
| 30 String isolateId; | 32 String isolateId; |
| 31 IsolateNotFound(this.isolateId); | 33 IsolateNotFound(this.isolateId); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 }); | 185 }); |
| 184 } | 186 } |
| 185 | 187 |
| 186 void onInstall() { | 188 void onInstall() { |
| 187 if (element == null) { | 189 if (element == null) { |
| 188 element = container; | 190 element = container; |
| 189 } | 191 } |
| 190 assert(element != null); | 192 assert(element != null); |
| 191 } | 193 } |
| 192 | 194 |
| 193 void _visitObject(obj) { | 195 Future _visitObject(obj) async { |
| 196 container.children = []; |
| 197 await obj.reload(); |
| 194 if (obj is Context) { | 198 if (obj is Context) { |
| 195 container.children = [ | 199 container.children = [ |
| 196 new ContextViewElement(app.vm, obj.isolate, obj, app.events, | 200 new ContextViewElement(app.vm, obj.isolate, obj, app.events, |
| 197 app.notifications, | 201 app.notifications, |
| 198 _contextRepository, | 202 _contextRepository, |
| 199 _retainedSizeRepository, | 203 _retainedSizeRepository, |
| 200 _reachableSizeRepository, | 204 _reachableSizeRepository, |
| 201 _inboundReferencesRepository, | 205 _inboundReferencesRepository, |
| 202 _retainingPathRepository, | 206 _retainingPathRepository, |
| 203 _instanceRepository, | 207 _instanceRepository, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events, | 242 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events, |
| 239 app.notifications, | 243 app.notifications, |
| 240 _megamorphicCacheRepository, | 244 _megamorphicCacheRepository, |
| 241 _retainedSizeRepository, | 245 _retainedSizeRepository, |
| 242 _reachableSizeRepository, | 246 _reachableSizeRepository, |
| 243 _inboundReferencesRepository, | 247 _inboundReferencesRepository, |
| 244 _retainingPathRepository, | 248 _retainingPathRepository, |
| 245 _instanceRepository, | 249 _instanceRepository, |
| 246 queue: app.queue) | 250 queue: app.queue) |
| 247 ]; | 251 ]; |
| 252 } else if (obj is ObjectPool) { |
| 253 container.children = [ |
| 254 new ObjectPoolViewElement(app.vm, obj.isolate, obj, app.events, |
| 255 app.notifications, |
| 256 _objectPoolRepository, |
| 257 _retainedSizeRepository, |
| 258 _reachableSizeRepository, |
| 259 _inboundReferencesRepository, |
| 260 _retainingPathRepository, |
| 261 _instanceRepository, |
| 262 queue: app.queue) |
| 263 ]; |
| 248 } else { | 264 } else { |
| 249 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); | 265 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); |
| 250 serviceElement.object = obj; | 266 serviceElement.object = obj; |
| 251 container.children = [serviceElement]; | 267 container.children = [serviceElement]; |
| 252 } | 268 } |
| 253 } | 269 } |
| 254 } | 270 } |
| 255 | 271 |
| 256 | 272 |
| 257 /// Class tree page. | 273 /// Class tree page. |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 assert(element != null); | 656 assert(element != null); |
| 641 } | 657 } |
| 642 | 658 |
| 643 void _visit(Uri uri) { | 659 void _visit(Uri uri) { |
| 644 assert(element != null); | 660 assert(element != null); |
| 645 assert(canVisit(uri)); | 661 assert(canVisit(uri)); |
| 646 } | 662 } |
| 647 | 663 |
| 648 bool canVisit(Uri uri) => uri.path == 'timeline'; | 664 bool canVisit(Uri uri) => uri.path == 'timeline'; |
| 649 } | 665 } |
| OLD | NEW |