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 ClassRepository _classRepository = new ClassRepository(); | 9 ClassRepository _classRepository = new ClassRepository(); |
10 ContextRepository _contextRepository = new ContextRepository(); | 10 ContextRepository _contextRepository = new ContextRepository(); |
11 FieldRepository _fieldRepository = new FieldRepository(); | 11 FieldRepository _fieldRepository = new FieldRepository(); |
| 12 FunctionRepository _functionRepository = new FunctionRepository(); |
12 HeapSnapshotRepository _heapSnapshotRepository | 13 HeapSnapshotRepository _heapSnapshotRepository |
13 = new HeapSnapshotRepository(); | 14 = new HeapSnapshotRepository(); |
14 ICDataRepository _icdataRepository = new ICDataRepository(); | 15 ICDataRepository _icdataRepository = new ICDataRepository(); |
15 InboundReferencesRepository _inboundReferencesRepository | 16 InboundReferencesRepository _inboundReferencesRepository |
16 = new InboundReferencesRepository(); | 17 = new InboundReferencesRepository(); |
17 InstanceRepository _instanceRepository = new InstanceRepository(); | 18 InstanceRepository _instanceRepository = new InstanceRepository(); |
18 IsolateSampleProfileRepository _isolateSampleProfileRepository | 19 IsolateSampleProfileRepository _isolateSampleProfileRepository |
19 = new IsolateSampleProfileRepository(); | 20 = new IsolateSampleProfileRepository(); |
20 MegamorphicCacheRepository _megamorphicCacheRepository | 21 MegamorphicCacheRepository _megamorphicCacheRepository |
21 = new MegamorphicCacheRepository(); | 22 = new MegamorphicCacheRepository(); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 _fieldRepository, | 219 _fieldRepository, |
219 _classRepository, | 220 _classRepository, |
220 _retainedSizeRepository, | 221 _retainedSizeRepository, |
221 _reachableSizeRepository, | 222 _reachableSizeRepository, |
222 _inboundReferencesRepository, | 223 _inboundReferencesRepository, |
223 _retainingPathRepository, | 224 _retainingPathRepository, |
224 _scriptRepository, | 225 _scriptRepository, |
225 _instanceRepository, | 226 _instanceRepository, |
226 queue: app.queue) | 227 queue: app.queue) |
227 ]; | 228 ]; |
| 229 } else if (obj is ServiceFunction) { |
| 230 container.children = [ |
| 231 new FunctionViewElement(app.vm, obj.isolate, obj, app.events, |
| 232 app.notifications, |
| 233 _functionRepository, |
| 234 _classRepository, |
| 235 _retainedSizeRepository, |
| 236 _reachableSizeRepository, |
| 237 _inboundReferencesRepository, |
| 238 _retainingPathRepository, |
| 239 _scriptRepository, |
| 240 _instanceRepository, |
| 241 queue: app.queue) |
| 242 ]; |
228 } else if (obj is ICData) { | 243 } else if (obj is ICData) { |
229 container.children = [ | 244 container.children = [ |
230 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, | 245 new ICDataViewElement(app.vm, obj.isolate, obj, app.events, |
231 app.notifications, | 246 app.notifications, |
232 _icdataRepository, | 247 _icdataRepository, |
233 _retainedSizeRepository, | 248 _retainedSizeRepository, |
234 _reachableSizeRepository, | 249 _reachableSizeRepository, |
235 _inboundReferencesRepository, | 250 _inboundReferencesRepository, |
236 _retainingPathRepository, | 251 _retainingPathRepository, |
237 _instanceRepository, | 252 _instanceRepository, |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 assert(element != null); | 689 assert(element != null); |
675 } | 690 } |
676 | 691 |
677 void _visit(Uri uri) { | 692 void _visit(Uri uri) { |
678 assert(element != null); | 693 assert(element != null); |
679 assert(canVisit(uri)); | 694 assert(canVisit(uri)); |
680 } | 695 } |
681 | 696 |
682 bool canVisit(Uri uri) => uri.path == 'timeline'; | 697 bool canVisit(Uri uri) => uri.path == 'timeline'; |
683 } | 698 } |
OLD | NEW |