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 _classRepository = new ClassRepository(); | 10 final _classRepository = new ClassRepository(); |
10 final _contextRepository = new ContextRepository(); | 11 final _contextRepository = new ContextRepository(); |
11 final _evalRepository = new EvalRepository(); | 12 final _evalRepository = new EvalRepository(); |
12 final _fieldRepository = new FieldRepository(); | 13 final _fieldRepository = new FieldRepository(); |
13 final _functionRepository = new FunctionRepository(); | 14 final _functionRepository = new FunctionRepository(); |
14 final _heapSnapshotRepository = new HeapSnapshotRepository(); | 15 final _heapSnapshotRepository = new HeapSnapshotRepository(); |
15 final _icdataRepository = new ICDataRepository(); | 16 final _icdataRepository = new ICDataRepository(); |
16 final _inboundReferencesRepository = new InboundReferencesRepository(); | 17 final _inboundReferencesRepository = new InboundReferencesRepository(); |
17 final _instanceRepository = new InstanceRepository(); | 18 final _instanceRepository = new InstanceRepository(); |
18 final _isolateSampleProfileRepository = new IsolateSampleProfileRepository(); | 19 final _isolateSampleProfileRepository = new IsolateSampleProfileRepository(); |
19 final _libraryRepository = new LibraryRepository(); | 20 final _libraryRepository = new LibraryRepository(); |
20 final _megamorphicCacheRepository = new MegamorphicCacheRepository(); | 21 final _megamorphicCacheRepository = new MegamorphicCacheRepository(); |
21 final _objectRepository = new ObjectRepository(); | 22 final _objectRepository = new ObjectRepository(); |
22 final _objectPoolRepository = new ObjectPoolRepository(); | 23 final _objectPoolRepository = new ObjectPoolRepository(); |
23 final _objectstoreRepository = new ObjectStoreRepository(); | 24 final _objectstoreRepository = new ObjectStoreRepository(); |
24 final _persistentHandlesRepository = new PersistentHandlesRepository(); | 25 final _persistentHandlesRepository = new PersistentHandlesRepository(); |
25 final _portsRepository = new PortsRepository(); | 26 final _portsRepository = new PortsRepository(); |
26 final _scriptRepository = new ScriptRepository(); | 27 final _scriptRepository = new ScriptRepository(); |
| 28 final _stronglyReachangleInstancesRepository = |
| 29 new StronglyReachableInstancesRepository(); |
| 30 final _topRetainingInstancesRepository = new TopRetainingInstancesRepository(); |
27 final _typeArgumentsRepository = new TypeArgumentsRepository(); | 31 final _typeArgumentsRepository = new TypeArgumentsRepository(); |
28 | 32 |
| 33 |
29 class IsolateNotFound implements Exception { | 34 class IsolateNotFound implements Exception { |
30 String isolateId; | 35 String isolateId; |
31 IsolateNotFound(this.isolateId); | 36 IsolateNotFound(this.isolateId); |
32 String toString() => "IsolateNotFound: $isolateId"; | 37 String toString() => "IsolateNotFound: $isolateId"; |
33 } | 38 } |
34 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); | 39 RetainedSizeRepository _retainedSizeRepository = new RetainedSizeRepository(); |
35 ReachableSizeRepository _reachableSizeRepository | 40 ReachableSizeRepository _reachableSizeRepository |
36 = new ReachableSizeRepository(); | 41 = new ReachableSizeRepository(); |
37 RetainingPathRepository _retainingPathRepository | 42 RetainingPathRepository _retainingPathRepository |
38 = new RetainingPathRepository(); | 43 = new RetainingPathRepository(); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 void onInstall() { | 191 void onInstall() { |
187 if (element == null) { | 192 if (element == null) { |
188 element = container; | 193 element = container; |
189 } | 194 } |
190 assert(element != null); | 195 assert(element != null); |
191 } | 196 } |
192 | 197 |
193 Future _visitObject(obj) async { | 198 Future _visitObject(obj) async { |
194 container.children = []; | 199 container.children = []; |
195 await obj.reload(); | 200 await obj.reload(); |
196 if (obj is Context) { | 201 if (obj is Class) { |
| 202 container.children = [ |
| 203 new ClassViewElement(app.vm, obj.isolate, obj, app.events, |
| 204 app.notifications, |
| 205 _classRepository, |
| 206 _retainedSizeRepository, |
| 207 _reachableSizeRepository, |
| 208 _inboundReferencesRepository, |
| 209 _retainingPathRepository, |
| 210 _fieldRepository, |
| 211 _scriptRepository, |
| 212 _instanceRepository, |
| 213 _evalRepository, |
| 214 _stronglyReachangleInstancesRepository, |
| 215 _topRetainingInstancesRepository, |
| 216 _classSampleProfileRepository, |
| 217 queue: app.queue) |
| 218 ]; |
| 219 } else if (obj is Context) { |
197 container.children = [ | 220 container.children = [ |
198 new ContextViewElement(app.vm, obj.isolate, obj, app.events, | 221 new ContextViewElement(app.vm, obj.isolate, obj, app.events, |
199 app.notifications, | 222 app.notifications, |
200 _contextRepository, | 223 _contextRepository, |
201 _retainedSizeRepository, | 224 _retainedSizeRepository, |
202 _reachableSizeRepository, | 225 _reachableSizeRepository, |
203 _inboundReferencesRepository, | 226 _inboundReferencesRepository, |
204 _retainingPathRepository, | 227 _retainingPathRepository, |
205 _instanceRepository, | 228 _instanceRepository, |
206 queue: app.queue) | 229 queue: app.queue) |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 assert(element != null); | 758 assert(element != null); |
736 } | 759 } |
737 | 760 |
738 void _visit(Uri uri) { | 761 void _visit(Uri uri) { |
739 assert(element != null); | 762 assert(element != null); |
740 assert(canVisit(uri)); | 763 assert(canVisit(uri)); |
741 } | 764 } |
742 | 765 |
743 bool canVisit(Uri uri) => uri.path == 'timeline'; | 766 bool canVisit(Uri uri) => uri.path == 'timeline'; |
744 } | 767 } |
OLD | NEW |