| 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 final _allocationProfileRepository = new AllocationProfileRepository(); | 7 final _allocationProfileRepository = new AllocationProfileRepository(); |
| 8 final _breakpointRepository = new BreakpointRepository(); | 8 final _breakpointRepository = new BreakpointRepository(); |
| 9 final _classSampleProfileRepository = new ClassSampleProfileRepository(); | 9 final _classSampleProfileRepository = new ClassSampleProfileRepository(); |
| 10 final _classRepository = new ClassRepository(); | 10 final _classRepository = new ClassRepository(); |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 _retainingPathRepository, | 221 _retainingPathRepository, |
| 222 _fieldRepository, | 222 _fieldRepository, |
| 223 _scriptRepository, | 223 _scriptRepository, |
| 224 _instanceRepository, | 224 _instanceRepository, |
| 225 _evalRepository, | 225 _evalRepository, |
| 226 _stronglyReachangleInstancesRepository, | 226 _stronglyReachangleInstancesRepository, |
| 227 _topRetainingInstancesRepository, | 227 _topRetainingInstancesRepository, |
| 228 _classSampleProfileRepository, | 228 _classSampleProfileRepository, |
| 229 queue: app.queue) | 229 queue: app.queue) |
| 230 ]; | 230 ]; |
| 231 } else if (obj is Code) { |
| 232 await obj.loadScript(); |
| 233 container.children = [ |
| 234 new CodeViewElement(app.vm, obj.isolate, obj, app.events, |
| 235 app.notifications, |
| 236 _retainedSizeRepository, |
| 237 _reachableSizeRepository, |
| 238 _inboundReferencesRepository, |
| 239 _retainingPathRepository, |
| 240 _instanceRepository, |
| 241 queue: app.queue) |
| 242 ]; |
| 231 } else if (obj is Context) { | 243 } else if (obj is Context) { |
| 232 container.children = [ | 244 container.children = [ |
| 233 new ContextViewElement(app.vm, obj.isolate, obj, app.events, | 245 new ContextViewElement(app.vm, obj.isolate, obj, app.events, |
| 234 app.notifications, | 246 app.notifications, |
| 235 _contextRepository, | 247 _contextRepository, |
| 236 _retainedSizeRepository, | 248 _retainedSizeRepository, |
| 237 _reachableSizeRepository, | 249 _reachableSizeRepository, |
| 238 _inboundReferencesRepository, | 250 _inboundReferencesRepository, |
| 239 _retainingPathRepository, | 251 _retainingPathRepository, |
| 240 _instanceRepository, | 252 _instanceRepository, |
| (...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 assert(element != null); | 794 assert(element != null); |
| 783 } | 795 } |
| 784 | 796 |
| 785 void _visit(Uri uri) { | 797 void _visit(Uri uri) { |
| 786 assert(element != null); | 798 assert(element != null); |
| 787 assert(canVisit(uri)); | 799 assert(canVisit(uri)); |
| 788 } | 800 } |
| 789 | 801 |
| 790 bool canVisit(Uri uri) => uri.path == 'timeline'; | 802 bool canVisit(Uri uri) => uri.path == 'timeline'; |
| 791 } | 803 } |
| OLD | NEW |