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

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

Issue 1189543003: Ports page for isolates (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 class Notification { 7 class Notification {
8 Notification.fromEvent(this.event); 8 Notification.fromEvent(this.event);
9 Notification.fromException(this.exception, this.stacktrace); 9 Notification.fromException(this.exception, this.stacktrace);
10 10
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 _pageRegistry.add(new DebuggerPage(this)); 130 _pageRegistry.add(new DebuggerPage(this));
131 _pageRegistry.add(new CpuProfilerPage(this)); 131 _pageRegistry.add(new CpuProfilerPage(this));
132 _pageRegistry.add(new TableCpuProfilerPage(this)); 132 _pageRegistry.add(new TableCpuProfilerPage(this));
133 _pageRegistry.add(new AllocationProfilerPage(this)); 133 _pageRegistry.add(new AllocationProfilerPage(this));
134 _pageRegistry.add(new HeapMapPage(this)); 134 _pageRegistry.add(new HeapMapPage(this));
135 _pageRegistry.add(new HeapSnapshotPage(this)); 135 _pageRegistry.add(new HeapSnapshotPage(this));
136 _pageRegistry.add(new VMConnectPage(this)); 136 _pageRegistry.add(new VMConnectPage(this));
137 _pageRegistry.add(new IsolateReconnectPage(this)); 137 _pageRegistry.add(new IsolateReconnectPage(this));
138 _pageRegistry.add(new ErrorViewPage(this)); 138 _pageRegistry.add(new ErrorViewPage(this));
139 _pageRegistry.add(new MetricsPage(this)); 139 _pageRegistry.add(new MetricsPage(this));
140 _pageRegistry.add(new PortsPage(this));
140 // Note that ErrorPage must be the last entry in the list as it is 141 // Note that ErrorPage must be the last entry in the list as it is
141 // the catch all. 142 // the catch all.
142 _pageRegistry.add(new ErrorPage(this)); 143 _pageRegistry.add(new ErrorPage(this));
143 } 144 }
144 145
145 void _visit(Uri uri, Map internalArguments) { 146 void _visit(Uri uri, Map internalArguments) {
146 if (internalArguments['trace'] != null) { 147 if (internalArguments['trace'] != null) {
147 var traceArg = internalArguments['trace']; 148 var traceArg = internalArguments['trace'];
148 if (traceArg == 'on') { 149 if (traceArg == 'on') {
149 Tracer.start(); 150 Tracer.start();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 this.vm = new FakeVM(crashDump['result']); 219 this.vm = new FakeVM(crashDump['result']);
219 app.locationManager.go('#/vm'); 220 app.locationManager.go('#/vm');
220 } 221 }
221 222
222 void handleException(e, st) { 223 void handleException(e, st) {
223 // TODO(turnidge): Report this failure via analytics. 224 // TODO(turnidge): Report this failure via analytics.
224 Logger.root.warning('Caught exception: ${e}\n${st}'); 225 Logger.root.warning('Caught exception: ${e}\n${st}');
225 notifications.add(new Notification.fromException(e, st)); 226 notifications.add(new Notification.fromException(e, st));
226 } 227 }
227 } 228 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698