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 _classRepository = new ClassRepository(); | 9 final _classRepository = new ClassRepository(); |
10 final _classSampleProfileRepository = new ClassSampleProfileRepository(); | 10 final _classSampleProfileRepository = new ClassSampleProfileRepository(); |
11 final _contextRepository = new ContextRepository(); | 11 final _contextRepository = new ContextRepository(); |
12 final _evalRepository = new EvalRepository(); | 12 final _evalRepository = new EvalRepository(); |
13 final _fieldRepository = new FieldRepository(); | 13 final _fieldRepository = new FieldRepository(); |
14 final _functionRepository = new FunctionRepository(); | 14 final _functionRepository = new FunctionRepository(); |
15 final _heapSnapshotRepository = new HeapSnapshotRepository(); | 15 final _heapSnapshotRepository = new HeapSnapshotRepository(); |
16 final _icdataRepository = new ICDataRepository(); | 16 final _icdataRepository = new ICDataRepository(); |
17 final _inboundReferencesRepository = new InboundReferencesRepository(); | 17 final _inboundReferencesRepository = new InboundReferencesRepository(); |
18 final _instanceRepository = new InstanceRepository(); | 18 final _instanceRepository = new InstanceRepository(); |
19 final _isolateRepository = new IsolateRepository(); | 19 final _isolateRepository = new IsolateRepository(); |
20 final _isolateSampleProfileRepository = new IsolateSampleProfileRepository(); | 20 final _isolateSampleProfileRepository = new IsolateSampleProfileRepository(); |
21 final _libraryRepository = new LibraryRepository(); | 21 final _libraryRepository = new LibraryRepository(); |
22 final _megamorphicCacheRepository = new MegamorphicCacheRepository(); | 22 final _megamorphicCacheRepository = new MegamorphicCacheRepository(); |
23 final _metricRepository = new MetricRepository(); | 23 final _metricRepository = new MetricRepository(); |
24 final _nativeMemorySampleProfileRepository = | |
25 new NativeMemorySampleProfileRepository(); | |
26 final _objectPoolRepository = new ObjectPoolRepository(); | 24 final _objectPoolRepository = new ObjectPoolRepository(); |
27 final _objectRepository = new ObjectRepository(); | 25 final _objectRepository = new ObjectRepository(); |
28 final _objectstoreRepository = new ObjectStoreRepository(); | 26 final _objectstoreRepository = new ObjectStoreRepository(); |
29 final _persistentHandlesRepository = new PersistentHandlesRepository(); | 27 final _persistentHandlesRepository = new PersistentHandlesRepository(); |
30 final _portsRepository = new PortsRepository(); | 28 final _portsRepository = new PortsRepository(); |
31 final _scriptRepository = new ScriptRepository(); | 29 final _scriptRepository = new ScriptRepository(); |
32 final _singleTargetCacheRepository = new SingleTargetCacheRepository(); | 30 final _singleTargetCacheRepository = new SingleTargetCacheRepository(); |
33 final _stronglyReachangleInstancesRepository = | 31 final _stronglyReachangleInstancesRepository = |
34 new StronglyReachableInstancesRepository(); | 32 new StronglyReachableInstancesRepository(); |
35 final _subtypeTestCacheRepository = new SubtypeTestCacheRepository(); | 33 final _subtypeTestCacheRepository = new SubtypeTestCacheRepository(); |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 element = new FlagListElement( | 183 element = new FlagListElement( |
186 app.vm, app.events, new FlagsRepository(app.vm), app.notifications, | 184 app.vm, app.events, new FlagsRepository(app.vm), app.notifications, |
187 queue: app.queue); | 185 queue: app.queue); |
188 } | 186 } |
189 | 187 |
190 void _visit(Uri uri) { | 188 void _visit(Uri uri) { |
191 super._visit(uri); | 189 super._visit(uri); |
192 } | 190 } |
193 } | 191 } |
194 | 192 |
195 class NativeMemoryProfilerPage extends SimplePage { | |
196 NativeMemoryProfilerPage(app) | |
197 : super('native-memory-profile', 'native-memory-profile', app); | |
198 @override | |
199 onInstall() { | |
200 if (element == null) { | |
201 element = new NativeMemoryProfileElement(app.vm, app.events, | |
202 app.notifications, _nativeMemorySampleProfileRepository, | |
203 queue: app.queue); | |
204 } | |
205 assert(element != null); | |
206 } | |
207 | |
208 void _visit(Uri uri) { | |
209 super._visit(uri); | |
210 } | |
211 } | |
212 | |
213 class InspectPage extends MatchingPage { | 193 class InspectPage extends MatchingPage { |
214 InspectPage(app) : super('inspect', app); | 194 InspectPage(app) : super('inspect', app); |
215 | 195 |
216 final DivElement container = new DivElement(); | 196 final DivElement container = new DivElement(); |
217 | 197 |
218 void _visit(Uri uri) { | 198 void _visit(Uri uri) { |
219 super._visit(uri); | 199 super._visit(uri); |
220 getIsolate(uri).then((isolate) { | 200 getIsolate(uri).then((isolate) { |
221 var objectId = uri.queryParameters['objectId']; | 201 var objectId = uri.queryParameters['objectId']; |
222 if (objectId == null) { | 202 if (objectId == null) { |
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 element = new TimelinePageElement(app.vm, app.events, app.notifications, | 901 element = new TimelinePageElement(app.vm, app.events, app.notifications, |
922 queue: app.queue); | 902 queue: app.queue); |
923 } | 903 } |
924 | 904 |
925 void _visit(Uri uri) { | 905 void _visit(Uri uri) { |
926 assert(canVisit(uri)); | 906 assert(canVisit(uri)); |
927 } | 907 } |
928 | 908 |
929 bool canVisit(Uri uri) => uri.path == 'timeline'; | 909 bool canVisit(Uri uri) => uri.path == 'timeline'; |
930 } | 910 } |
OLD | NEW |