Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: runtime/observatory/lib/src/app/page.dart

Issue 2980733003: Introduced support for external services registration in the ServiceProtocol (Closed)
Patch Set: Fix checked mode exceptions Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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();
20 final _isolateSampleProfileRepository = new IsolateSampleProfileRepository(); 19 final _isolateSampleProfileRepository = new IsolateSampleProfileRepository();
21 final _libraryRepository = new LibraryRepository(); 20 final _libraryRepository = new LibraryRepository();
22 final _megamorphicCacheRepository = new MegamorphicCacheRepository(); 21 final _megamorphicCacheRepository = new MegamorphicCacheRepository();
23 final _metricRepository = new MetricRepository(); 22 final _metricRepository = new MetricRepository();
24 final _nativeMemorySampleProfileRepository = 23 final _nativeMemorySampleProfileRepository =
25 new NativeMemorySampleProfileRepository(); 24 new NativeMemorySampleProfileRepository();
26 final _objectPoolRepository = new ObjectPoolRepository(); 25 final _objectPoolRepository = new ObjectPoolRepository();
27 final _objectRepository = new ObjectRepository(); 26 final _objectRepository = new ObjectRepository();
28 final _objectstoreRepository = new ObjectStoreRepository(); 27 final _objectstoreRepository = new ObjectStoreRepository();
29 final _persistentHandlesRepository = new PersistentHandlesRepository(); 28 final _persistentHandlesRepository = new PersistentHandlesRepository();
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void _visit(Uri uri) { 165 void _visit(Uri uri) {
167 super._visit(uri); 166 super._visit(uri);
168 if (app.vm == null) { 167 if (app.vm == null) {
169 Logger.root.severe('VMPage has no VM'); 168 Logger.root.severe('VMPage has no VM');
170 // Reroute to vm-connect. 169 // Reroute to vm-connect.
171 app.locationManager.go(Uris.vmConnect()); 170 app.locationManager.go(Uris.vmConnect());
172 return; 171 return;
173 } 172 }
174 app.vm.reload().then((VM vm) { 173 app.vm.reload().then((VM vm) {
175 container.children = [ 174 container.children = [
176 new VMViewElement(vm, app.events, app.notifications, _isolateRepository, 175 new VMViewElement(vm, app.events, app.notifications,
177 _scriptRepository, 176 new IsolateRepository(app.vm), _scriptRepository,
178 queue: app.queue) 177 queue: app.queue)
179 ]; 178 ];
180 }).catchError((e, stack) { 179 }).catchError((e, stack) {
181 Logger.root.severe('VMPage visit error: $e'); 180 Logger.root.severe('VMPage visit error: $e');
182 // Reroute to vm-connect. 181 // Reroute to vm-connect.
183 app.locationManager.go(Uris.vmConnect()); 182 app.locationManager.go(Uris.vmConnect());
184 }); 183 });
185 } 184 }
186 } 185 }
187 186
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 _functionRepository, 341 _functionRepository,
343 queue: app.queue) 342 queue: app.queue)
344 ]; 343 ];
345 } else if (obj is Isolate) { 344 } else if (obj is Isolate) {
346 container.children = [ 345 container.children = [
347 new IsolateViewElement( 346 new IsolateViewElement(
348 app.vm, 347 app.vm,
349 obj, 348 obj,
350 app.events, 349 app.events,
351 app.notifications, 350 app.notifications,
352 _isolateRepository, 351 new IsolateRepository(app.vm),
353 _scriptRepository, 352 _scriptRepository,
354 _functionRepository, 353 _functionRepository,
355 _libraryRepository, 354 _libraryRepository,
356 _objectRepository, 355 _objectRepository,
357 _evalRepository, 356 _evalRepository,
358 queue: app.queue) 357 queue: app.queue)
359 ]; 358 ];
360 } else if (obj is ServiceFunction) { 359 } else if (obj is ServiceFunction) {
361 container.children = [ 360 container.children = [
362 new FunctionViewElement( 361 new FunctionViewElement(
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 element = new TimelinePageElement(app.vm, app.events, app.notifications, 953 element = new TimelinePageElement(app.vm, app.events, app.notifications,
955 queue: app.queue); 954 queue: app.queue);
956 } 955 }
957 956
958 void _visit(Uri uri) { 957 void _visit(Uri uri) {
959 assert(canVisit(uri)); 958 assert(canVisit(uri));
960 } 959 }
961 960
962 bool canVisit(Uri uri) => uri.path == 'timeline'; 961 bool canVisit(Uri uri) => uri.path == 'timeline';
963 } 962 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698