| 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 ContextRepository _contextRepository = new ContextRepository(); | 9 ContextRepository _contextRepository = new ContextRepository(); |
| 10 HeapSnapshotRepository _heapSnapshotRepository | 10 HeapSnapshotRepository _heapSnapshotRepository |
| 11 = new HeapSnapshotRepository(); | 11 = new HeapSnapshotRepository(); |
| 12 ICDataRepository _icdataRepository = new ICDataRepository(); | 12 ICDataRepository _icdataRepository = new ICDataRepository(); |
| 13 InboundReferencesRepository _inboundReferencesRepository | 13 InboundReferencesRepository _inboundReferencesRepository |
| 14 = new InboundReferencesRepository(); | 14 = new InboundReferencesRepository(); |
| 15 InstanceRepository _instanceRepository = new InstanceRepository(); | 15 InstanceRepository _instanceRepository = new InstanceRepository(); |
| 16 IsolateSampleProfileRepository _isolateSampleProfileRepository | 16 IsolateSampleProfileRepository _isolateSampleProfileRepository |
| 17 = new IsolateSampleProfileRepository(); | 17 = new IsolateSampleProfileRepository(); |
| 18 MegamorphicCacheRepository _megamorphicCacheRepository |
| 19 = new MegamorphicCacheRepository(); |
| 18 ObjectStoreRepository _objectstoreRepository | 20 ObjectStoreRepository _objectstoreRepository |
| 19 = new ObjectStoreRepository(); | 21 = new ObjectStoreRepository(); |
| 20 PersistentHandlesRepository _persistentHandlesRepository | 22 PersistentHandlesRepository _persistentHandlesRepository |
| 21 = new PersistentHandlesRepository(); | 23 = new PersistentHandlesRepository(); |
| 22 PortsRepository _portsRepository = new PortsRepository(); | 24 PortsRepository _portsRepository = new PortsRepository(); |
| 23 | 25 |
| 24 class IsolateNotFound implements Exception { | 26 class IsolateNotFound implements Exception { |
| 25 String isolateId; | 27 String isolateId; |
| 26 IsolateNotFound(this.isolateId); | 28 IsolateNotFound(this.isolateId); |
| 27 String toString() => "IsolateNotFound: $isolateId"; | 29 String toString() => "IsolateNotFound: $isolateId"; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, | 209 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, |
| 208 app.notifications, | 210 app.notifications, |
| 209 _icdataRepository, | 211 _icdataRepository, |
| 210 _retainedSizeRepository, | 212 _retainedSizeRepository, |
| 211 _reachableSizeRepository, | 213 _reachableSizeRepository, |
| 212 _inboundReferencesRepository, | 214 _inboundReferencesRepository, |
| 213 _retainingPathRepository, | 215 _retainingPathRepository, |
| 214 _instanceRepository, | 216 _instanceRepository, |
| 215 queue: app.queue) | 217 queue: app.queue) |
| 216 ]; | 218 ]; |
| 219 } else if (obj is MegamorphicCache) { |
| 220 container.children = [ |
| 221 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events, |
| 222 app.notifications, |
| 223 _megamorphicCacheRepository, |
| 224 _retainedSizeRepository, |
| 225 _reachableSizeRepository, |
| 226 _inboundReferencesRepository, |
| 227 _retainingPathRepository, |
| 228 _instanceRepository, |
| 229 queue: app.queue) |
| 230 ]; |
| 217 } else { | 231 } else { |
| 218 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); | 232 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); |
| 219 serviceElement.object = obj; | 233 serviceElement.object = obj; |
| 220 container.children = [serviceElement]; | 234 container.children = [serviceElement]; |
| 221 } | 235 } |
| 222 } | 236 } |
| 223 } | 237 } |
| 224 | 238 |
| 225 | 239 |
| 226 /// Class tree page. | 240 /// Class tree page. |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 assert(element != null); | 623 assert(element != null); |
| 610 } | 624 } |
| 611 | 625 |
| 612 void _visit(Uri uri) { | 626 void _visit(Uri uri) { |
| 613 assert(element != null); | 627 assert(element != null); |
| 614 assert(canVisit(uri)); | 628 assert(canVisit(uri)); |
| 615 } | 629 } |
| 616 | 630 |
| 617 bool canVisit(Uri uri) => uri.path == 'timeline'; | 631 bool canVisit(Uri uri) => uri.path == 'timeline'; |
| 618 } | 632 } |
| OLD | NEW |