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 | 22 ObjectPoolRepository _objectPoolRepository |
23 = new ObjectPoolRepository(); | 23 = new ObjectPoolRepository(); |
24 ObjectStoreRepository _objectstoreRepository | 24 ObjectStoreRepository _objectstoreRepository |
25 = new ObjectStoreRepository(); | 25 = new ObjectStoreRepository(); |
| 26 ObjectRepository _objectRepository = new ObjectRepository(); |
26 PersistentHandlesRepository _persistentHandlesRepository | 27 PersistentHandlesRepository _persistentHandlesRepository |
27 = new PersistentHandlesRepository(); | 28 = new PersistentHandlesRepository(); |
28 PortsRepository _portsRepository = new PortsRepository(); | 29 PortsRepository _portsRepository = new PortsRepository(); |
29 ScriptRepository _scriptRepository = new ScriptRepository(); | 30 ScriptRepository _scriptRepository = new ScriptRepository(); |
30 | 31 |
31 class IsolateNotFound implements Exception { | 32 class IsolateNotFound implements Exception { |
32 String isolateId; | 33 String isolateId; |
33 IsolateNotFound(this.isolateId); | 34 IsolateNotFound(this.isolateId); |
34 String toString() => "IsolateNotFound: $isolateId"; | 35 String toString() => "IsolateNotFound: $isolateId"; |
35 } | 36 } |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 new ObjectPoolViewElement(app.vm, obj.isolate, obj, app.events, | 255 new ObjectPoolViewElement(app.vm, obj.isolate, obj, app.events, |
255 app.notifications, | 256 app.notifications, |
256 _objectPoolRepository, | 257 _objectPoolRepository, |
257 _retainedSizeRepository, | 258 _retainedSizeRepository, |
258 _reachableSizeRepository, | 259 _reachableSizeRepository, |
259 _inboundReferencesRepository, | 260 _inboundReferencesRepository, |
260 _retainingPathRepository, | 261 _retainingPathRepository, |
261 _instanceRepository, | 262 _instanceRepository, |
262 queue: app.queue) | 263 queue: app.queue) |
263 ]; | 264 ]; |
| 265 } else if (obj.kind == 'Object') { |
| 266 container.children = [ |
| 267 new ObjectViewElement(app.vm, obj.isolate, obj, app.events, |
| 268 app.notifications, |
| 269 _objectRepository, |
| 270 _retainedSizeRepository, |
| 271 _reachableSizeRepository, |
| 272 _inboundReferencesRepository, |
| 273 _retainingPathRepository, |
| 274 _instanceRepository, |
| 275 queue: app.queue) |
| 276 ]; |
264 } else { | 277 } else { |
265 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); | 278 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); |
266 serviceElement.object = obj; | 279 serviceElement.object = obj; |
267 container.children = [serviceElement]; | 280 container.children = [serviceElement]; |
268 } | 281 } |
269 } | 282 } |
270 } | 283 } |
271 | 284 |
272 | 285 |
273 /// Class tree page. | 286 /// Class tree page. |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 assert(element != null); | 669 assert(element != null); |
657 } | 670 } |
658 | 671 |
659 void _visit(Uri uri) { | 672 void _visit(Uri uri) { |
660 assert(element != null); | 673 assert(element != null); |
661 assert(canVisit(uri)); | 674 assert(canVisit(uri)); |
662 } | 675 } |
663 | 676 |
664 bool canVisit(Uri uri) => uri.path == 'timeline'; | 677 bool canVisit(Uri uri) => uri.path == 'timeline'; |
665 } | 678 } |
OLD | NEW |