| 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 | 18 MegamorphicCacheRepository _megamorphicCacheRepository |
| 19 = new MegamorphicCacheRepository(); | 19 = new MegamorphicCacheRepository(); |
| 20 ObjectStoreRepository _objectstoreRepository | 20 ObjectStoreRepository _objectstoreRepository |
| 21 = new ObjectStoreRepository(); | 21 = new ObjectStoreRepository(); |
| 22 PersistentHandlesRepository _persistentHandlesRepository | 22 PersistentHandlesRepository _persistentHandlesRepository |
| 23 = new PersistentHandlesRepository(); | 23 = new PersistentHandlesRepository(); |
| 24 PortsRepository _portsRepository = new PortsRepository(); | 24 PortsRepository _portsRepository = new PortsRepository(); |
| 25 ScriptRepository _scriptRepository = new ScriptRepository(); |
| 25 | 26 |
| 26 class IsolateNotFound implements Exception { | 27 class IsolateNotFound implements Exception { |
| 27 String isolateId; | 28 String isolateId; |
| 28 IsolateNotFound(this.isolateId); | 29 IsolateNotFound(this.isolateId); |
| 29 String toString() => "IsolateNotFound: $isolateId"; | 30 String toString() => "IsolateNotFound: $isolateId"; |
| 30 } | 31 } |
| 31 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); | 32 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); |
| 32 ReachableSizeRepository _reachableSizeRepository | 33 ReachableSizeRepository _reachableSizeRepository |
| 33 = new ReachableSizeRepository(); | 34 = new ReachableSizeRepository(); |
| 34 RetainingPathRepository _retainingPathRepository | 35 RetainingPathRepository _retainingPathRepository |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events, | 222 new MegamorphicCacheViewElement(app.vm, obj.isolate, obj, app.events, |
| 222 app.notifications, | 223 app.notifications, |
| 223 _megamorphicCacheRepository, | 224 _megamorphicCacheRepository, |
| 224 _retainedSizeRepository, | 225 _retainedSizeRepository, |
| 225 _reachableSizeRepository, | 226 _reachableSizeRepository, |
| 226 _inboundReferencesRepository, | 227 _inboundReferencesRepository, |
| 227 _retainingPathRepository, | 228 _retainingPathRepository, |
| 228 _instanceRepository, | 229 _instanceRepository, |
| 229 queue: app.queue) | 230 queue: app.queue) |
| 230 ]; | 231 ]; |
| 232 } else if (obj is Script) { |
| 233 var pos; |
| 234 if (app.locationManager.internalArguments['pos'] != null) { |
| 235 try { |
| 236 pos = int.parse(app.locationManager.internalArguments['pos']); |
| 237 } catch (_) {} |
| 238 } |
| 239 container.children = [ |
| 240 new ScriptViewElement(app.vm, obj.isolate, obj, app.events, |
| 241 app.notifications, |
| 242 _scriptRepository, |
| 243 _retainedSizeRepository, |
| 244 _reachableSizeRepository, |
| 245 _inboundReferencesRepository, |
| 246 _retainingPathRepository, |
| 247 _instanceRepository, |
| 248 pos: pos, queue: app.queue) |
| 249 ]; |
| 231 } else { | 250 } else { |
| 232 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); | 251 ServiceObjectViewElement serviceElement =new Element.tag('service-view'); |
| 233 serviceElement.object = obj; | 252 serviceElement.object = obj; |
| 234 container.children = [serviceElement]; | 253 container.children = [serviceElement]; |
| 235 } | 254 } |
| 236 } | 255 } |
| 237 } | 256 } |
| 238 | 257 |
| 239 | 258 |
| 240 /// Class tree page. | 259 /// Class tree page. |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 assert(element != null); | 642 assert(element != null); |
| 624 } | 643 } |
| 625 | 644 |
| 626 void _visit(Uri uri) { | 645 void _visit(Uri uri) { |
| 627 assert(element != null); | 646 assert(element != null); |
| 628 assert(canVisit(uri)); | 647 assert(canVisit(uri)); |
| 629 } | 648 } |
| 630 | 649 |
| 631 bool canVisit(Uri uri) => uri.path == 'timeline'; | 650 bool canVisit(Uri uri) => uri.path == 'timeline'; |
| 632 } | 651 } |
| OLD | NEW |