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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 break; | 129 break; |
130 } | 130 } |
131 } | 131 } |
132 | 132 |
133 void _registerPages() { | 133 void _registerPages() { |
134 _pageRegistry.add(new VMPage(this)); | 134 _pageRegistry.add(new VMPage(this)); |
135 _pageRegistry.add(new FlagsPage(this)); | 135 _pageRegistry.add(new FlagsPage(this)); |
136 _pageRegistry.add(new InspectPage(this)); | 136 _pageRegistry.add(new InspectPage(this)); |
137 _pageRegistry.add(new ClassTreePage(this)); | 137 _pageRegistry.add(new ClassTreePage(this)); |
138 _pageRegistry.add(new DebuggerPage(this)); | 138 _pageRegistry.add(new DebuggerPage(this)); |
| 139 _pageRegistry.add(new ObjectStorePage(this)); |
139 _pageRegistry.add(new CpuProfilerPage(this)); | 140 _pageRegistry.add(new CpuProfilerPage(this)); |
140 _pageRegistry.add(new TableCpuProfilerPage(this)); | 141 _pageRegistry.add(new TableCpuProfilerPage(this)); |
141 _pageRegistry.add(new AllocationProfilerPage(this)); | 142 _pageRegistry.add(new AllocationProfilerPage(this)); |
142 _pageRegistry.add(new HeapMapPage(this)); | 143 _pageRegistry.add(new HeapMapPage(this)); |
143 _pageRegistry.add(new HeapSnapshotPage(this)); | 144 _pageRegistry.add(new HeapSnapshotPage(this)); |
144 _pageRegistry.add(new VMConnectPage(this)); | 145 _pageRegistry.add(new VMConnectPage(this)); |
145 _pageRegistry.add(new IsolateReconnectPage(this)); | 146 _pageRegistry.add(new IsolateReconnectPage(this)); |
146 _pageRegistry.add(new ErrorViewPage(this)); | 147 _pageRegistry.add(new ErrorViewPage(this)); |
147 _pageRegistry.add(new MetricsPage(this)); | 148 _pageRegistry.add(new MetricsPage(this)); |
148 _pageRegistry.add(new PersistentHandlesPage(this)); | 149 _pageRegistry.add(new PersistentHandlesPage(this)); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 241 } |
241 | 242 |
242 // TODO(turnidge): Report this failure via analytics. | 243 // TODO(turnidge): Report this failure via analytics. |
243 Logger.root.warning('Caught exception: ${e}\n${st}'); | 244 Logger.root.warning('Caught exception: ${e}\n${st}'); |
244 notifications.add(new Notification.fromException(e, st)); | 245 notifications.add(new Notification.fromException(e, st)); |
245 } | 246 } |
246 | 247 |
247 // This map keeps track of which curly-blocks have been expanded by the user. | 248 // This map keeps track of which curly-blocks have been expanded by the user. |
248 Map<String,bool> expansions = {}; | 249 Map<String,bool> expansions = {}; |
249 } | 250 } |
OLD | NEW |