| 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 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 _pageRegistry.add(new TableCpuProfilerPage(this)); | 134 _pageRegistry.add(new TableCpuProfilerPage(this)); |
| 135 _pageRegistry.add(new AllocationProfilerPage(this)); | 135 _pageRegistry.add(new AllocationProfilerPage(this)); |
| 136 _pageRegistry.add(new HeapMapPage(this)); | 136 _pageRegistry.add(new HeapMapPage(this)); |
| 137 _pageRegistry.add(new HeapSnapshotPage(this)); | 137 _pageRegistry.add(new HeapSnapshotPage(this)); |
| 138 _pageRegistry.add(new VMConnectPage(this)); | 138 _pageRegistry.add(new VMConnectPage(this)); |
| 139 _pageRegistry.add(new IsolateReconnectPage(this)); | 139 _pageRegistry.add(new IsolateReconnectPage(this)); |
| 140 _pageRegistry.add(new ErrorViewPage(this)); | 140 _pageRegistry.add(new ErrorViewPage(this)); |
| 141 _pageRegistry.add(new MetricsPage(this)); | 141 _pageRegistry.add(new MetricsPage(this)); |
| 142 _pageRegistry.add(new PortsPage(this)); | 142 _pageRegistry.add(new PortsPage(this)); |
| 143 _pageRegistry.add(new LoggingPage(this)); | 143 _pageRegistry.add(new LoggingPage(this)); |
| 144 _pageRegistry.add(new TimelinePage(this)); |
| 144 // Note that ErrorPage must be the last entry in the list as it is | 145 // Note that ErrorPage must be the last entry in the list as it is |
| 145 // the catch all. | 146 // the catch all. |
| 146 _pageRegistry.add(new ErrorPage(this)); | 147 _pageRegistry.add(new ErrorPage(this)); |
| 147 } | 148 } |
| 148 | 149 |
| 149 void _visit(Uri uri, Map internalArguments) { | 150 void _visit(Uri uri, Map internalArguments) { |
| 150 if (internalArguments['trace'] != null) { | 151 if (internalArguments['trace'] != null) { |
| 151 var traceArg = internalArguments['trace']; | 152 var traceArg = internalArguments['trace']; |
| 152 if (traceArg == 'on') { | 153 if (traceArg == 'on') { |
| 153 Tracer.start(); | 154 Tracer.start(); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 233 } |
| 233 | 234 |
| 234 // TODO(turnidge): Report this failure via analytics. | 235 // TODO(turnidge): Report this failure via analytics. |
| 235 Logger.root.warning('Caught exception: ${e}\n${st}'); | 236 Logger.root.warning('Caught exception: ${e}\n${st}'); |
| 236 notifications.add(new Notification.fromException(e, st)); | 237 notifications.add(new Notification.fromException(e, st)); |
| 237 } | 238 } |
| 238 | 239 |
| 239 // This map keeps track of which curly-blocks have been expanded by the user. | 240 // This map keeps track of which curly-blocks have been expanded by the user. |
| 240 Map<String,bool> expansions = {}; | 241 Map<String,bool> expansions = {}; |
| 241 } | 242 } |
| OLD | NEW |