OLD | NEW |
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 /// The observatory application. Instances of this are created and owned | 7 /// The observatory application. Instances of this are created and owned |
8 /// by the observatory_application custom element. | 8 /// by the observatory_application custom element. |
9 class ObservatoryApplication { | 9 class ObservatoryApplication { |
10 static ObservatoryApplication app; | 10 static ObservatoryApplication app; |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 _pageRegistry.add(new HeapMapPage(this)); | 164 _pageRegistry.add(new HeapMapPage(this)); |
165 _pageRegistry.add(new HeapSnapshotPage(this)); | 165 _pageRegistry.add(new HeapSnapshotPage(this)); |
166 _pageRegistry.add(new VMConnectPage(this)); | 166 _pageRegistry.add(new VMConnectPage(this)); |
167 _pageRegistry.add(new IsolateReconnectPage(this)); | 167 _pageRegistry.add(new IsolateReconnectPage(this)); |
168 _pageRegistry.add(new ErrorViewPage(this)); | 168 _pageRegistry.add(new ErrorViewPage(this)); |
169 _pageRegistry.add(new MetricsPage(this)); | 169 _pageRegistry.add(new MetricsPage(this)); |
170 _pageRegistry.add(new PersistentHandlesPage(this)); | 170 _pageRegistry.add(new PersistentHandlesPage(this)); |
171 _pageRegistry.add(new PortsPage(this)); | 171 _pageRegistry.add(new PortsPage(this)); |
172 _pageRegistry.add(new LoggingPage(this)); | 172 _pageRegistry.add(new LoggingPage(this)); |
173 _pageRegistry.add(new TimelinePage(this)); | 173 _pageRegistry.add(new TimelinePage(this)); |
| 174 _pageRegistry.add(new MemoryDashboardPage(this)); |
174 // Note that ErrorPage must be the last entry in the list as it is | 175 // Note that ErrorPage must be the last entry in the list as it is |
175 // the catch all. | 176 // the catch all. |
176 _pageRegistry.add(new ErrorPage(this)); | 177 _pageRegistry.add(new ErrorPage(this)); |
177 } | 178 } |
178 | 179 |
179 void _visit(Uri uri, Map internalArguments) { | 180 void _visit(Uri uri, Map internalArguments) { |
180 if (internalArguments['trace'] != null) { | 181 if (internalArguments['trace'] != null) { |
181 var traceArg = internalArguments['trace']; | 182 var traceArg = internalArguments['trace']; |
182 if (traceArg == 'on') { | 183 if (traceArg == 'on') { |
183 Tracer.start(); | 184 Tracer.start(); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 } | 282 } |
282 | 283 |
283 // TODO(turnidge): Report this failure via analytics. | 284 // TODO(turnidge): Report this failure via analytics. |
284 Logger.root.warning('Caught exception: ${e}\n${st}'); | 285 Logger.root.warning('Caught exception: ${e}\n${st}'); |
285 notifications.add(new ExceptionNotification(e, stacktrace: st)); | 286 notifications.add(new ExceptionNotification(e, stacktrace: st)); |
286 } | 287 } |
287 | 288 |
288 // This map keeps track of which curly-blocks have been expanded by the user. | 289 // This map keeps track of which curly-blocks have been expanded by the user. |
289 Map<String, bool> expansions = {}; | 290 Map<String, bool> expansions = {}; |
290 } | 291 } |
OLD | NEW |