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

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

Issue 1124153006: Heap snapshot visualizations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync Created 5 years, 7 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 | Annotate | Revision Log
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void _registerPages() { 124 void _registerPages() {
125 _pageRegistry.add(new VMPage(this)); 125 _pageRegistry.add(new VMPage(this));
126 _pageRegistry.add(new FlagsPage(this)); 126 _pageRegistry.add(new FlagsPage(this));
127 _pageRegistry.add(new InspectPage(this)); 127 _pageRegistry.add(new InspectPage(this));
128 _pageRegistry.add(new ClassTreePage(this)); 128 _pageRegistry.add(new ClassTreePage(this));
129 _pageRegistry.add(new DebuggerPage(this)); 129 _pageRegistry.add(new DebuggerPage(this));
130 _pageRegistry.add(new CpuProfilerPage(this)); 130 _pageRegistry.add(new CpuProfilerPage(this));
131 _pageRegistry.add(new TableCpuProfilerPage(this)); 131 _pageRegistry.add(new TableCpuProfilerPage(this));
132 _pageRegistry.add(new AllocationProfilerPage(this)); 132 _pageRegistry.add(new AllocationProfilerPage(this));
133 _pageRegistry.add(new HeapMapPage(this)); 133 _pageRegistry.add(new HeapMapPage(this));
134 _pageRegistry.add(new HeapSnapshotPage(this));
134 _pageRegistry.add(new VMConnectPage(this)); 135 _pageRegistry.add(new VMConnectPage(this));
135 _pageRegistry.add(new IsolateReconnectPage(this)); 136 _pageRegistry.add(new IsolateReconnectPage(this));
136 _pageRegistry.add(new ErrorViewPage(this)); 137 _pageRegistry.add(new ErrorViewPage(this));
137 _pageRegistry.add(new MetricsPage(this)); 138 _pageRegistry.add(new MetricsPage(this));
138 // Note that ErrorPage must be the last entry in the list as it is 139 // Note that ErrorPage must be the last entry in the list as it is
139 // the catch all. 140 // the catch all.
140 _pageRegistry.add(new ErrorPage(this)); 141 _pageRegistry.add(new ErrorPage(this));
141 } 142 }
142 143
143 void _visit(Uri uri, Map internalArguments) { 144 void _visit(Uri uri, Map internalArguments) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 this.vm = new FakeVM(crashDump['result']); 217 this.vm = new FakeVM(crashDump['result']);
217 app.locationManager.go('#/vm'); 218 app.locationManager.go('#/vm');
218 } 219 }
219 220
220 void handleException(e, st) { 221 void handleException(e, st) {
221 // TODO(turnidge): Report this failure via analytics. 222 // TODO(turnidge): Report this failure via analytics.
222 Logger.root.warning('Caught exception: ${e}\n${st}'); 223 Logger.root.warning('Caught exception: ${e}\n${st}');
223 notifications.add(new Notification.fromException(e, st)); 224 notifications.add(new Notification.fromException(e, st));
224 } 225 }
225 } 226 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698