| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 _retainingPathRepository, | 209 _retainingPathRepository, |
| 210 _fieldRepository, | 210 _fieldRepository, |
| 211 _scriptRepository, | 211 _scriptRepository, |
| 212 _instanceRepository, | 212 _instanceRepository, |
| 213 _evalRepository, | 213 _evalRepository, |
| 214 _stronglyReachangleInstancesRepository, | 214 _stronglyReachangleInstancesRepository, |
| 215 _topRetainingInstancesRepository, | 215 _topRetainingInstancesRepository, |
| 216 _classSampleProfileRepository, | 216 _classSampleProfileRepository, |
| 217 queue: app.queue) | 217 queue: app.queue) |
| 218 ]; | 218 ]; |
| 219 } else if (obj is Code) { |
| 220 await obj.loadScript(); |
| 221 container.children = [ |
| 222 new CodeViewElement(app.vm, obj.isolate, obj, app.events, |
| 223 app.notifications, |
| 224 _retainedSizeRepository, |
| 225 _reachableSizeRepository, |
| 226 _inboundReferencesRepository, |
| 227 _retainingPathRepository, |
| 228 _instanceRepository, |
| 229 queue: app.queue) |
| 230 ]; |
| 219 } else if (obj is Context) { | 231 } else if (obj is Context) { |
| 220 container.children = [ | 232 container.children = [ |
| 221 new ContextViewElement(app.vm, obj.isolate, obj, app.events, | 233 new ContextViewElement(app.vm, obj.isolate, obj, app.events, |
| 222 app.notifications, | 234 app.notifications, |
| 223 _contextRepository, | 235 _contextRepository, |
| 224 _retainedSizeRepository, | 236 _retainedSizeRepository, |
| 225 _reachableSizeRepository, | 237 _reachableSizeRepository, |
| 226 _inboundReferencesRepository, | 238 _inboundReferencesRepository, |
| 227 _retainingPathRepository, | 239 _retainingPathRepository, |
| 228 _instanceRepository, | 240 _instanceRepository, |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 assert(element != null); | 770 assert(element != null); |
| 759 } | 771 } |
| 760 | 772 |
| 761 void _visit(Uri uri) { | 773 void _visit(Uri uri) { |
| 762 assert(element != null); | 774 assert(element != null); |
| 763 assert(canVisit(uri)); | 775 assert(canVisit(uri)); |
| 764 } | 776 } |
| 765 | 777 |
| 766 bool canVisit(Uri uri) => uri.path == 'timeline'; | 778 bool canVisit(Uri uri) => uri.path == 'timeline'; |
| 767 } | 779 } |
| OLD | NEW |