| 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 |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 new ContextViewElement(app.vm, obj.isolate, obj, app.events, | 187 new ContextViewElement(app.vm, obj.isolate, obj, app.events, |
| 188 app.notifications, | 188 app.notifications, |
| 189 _contextRepository, | 189 _contextRepository, |
| 190 _retainedSizeRepository, | 190 _retainedSizeRepository, |
| 191 _reachableSizeRepository, | 191 _reachableSizeRepository, |
| 192 _inboundReferencesRepository, | 192 _inboundReferencesRepository, |
| 193 _retainingPathRepository, | 193 _retainingPathRepository, |
| 194 _instanceRepository, | 194 _instanceRepository, |
| 195 queue: app.queue) | 195 queue: app.queue) |
| 196 ]; | 196 ]; |
| 197 } else if (obj is DartError) { |
| 198 container.children = [ |
| 199 new ErrorViewElement(app.notifications, obj, queue: app.queue) |
| 200 ]; |
| 197 } else if (obj is ICData) { | 201 } else if (obj is ICData) { |
| 198 container.children = [ | 202 container.children = [ |
| 199 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, | 203 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, |
| 200 app.notifications, | 204 app.notifications, |
| 201 _icdataRepository, | 205 _icdataRepository, |
| 202 _retainedSizeRepository, | 206 _retainedSizeRepository, |
| 203 _reachableSizeRepository, | 207 _reachableSizeRepository, |
| 204 _inboundReferencesRepository, | 208 _inboundReferencesRepository, |
| 205 _retainingPathRepository, | 209 _retainingPathRepository, |
| 206 _instanceRepository, | 210 _instanceRepository, |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 assert(element != null); | 581 assert(element != null); |
| 578 } | 582 } |
| 579 | 583 |
| 580 void _visit(Uri uri) { | 584 void _visit(Uri uri) { |
| 581 assert(element != null); | 585 assert(element != null); |
| 582 assert(canVisit(uri)); | 586 assert(canVisit(uri)); |
| 583 } | 587 } |
| 584 | 588 |
| 585 bool canVisit(Uri uri) => uri.path == 'timeline'; | 589 bool canVisit(Uri uri) => uri.path == 'timeline'; |
| 586 } | 590 } |
| OLD | NEW |