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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 assert(event.kind != ServiceEvent.kNone); | 146 assert(event.kind != ServiceEvent.kNone); |
147 M.Event e = createEventFromServiceEvent(event); | 147 M.Event e = createEventFromServiceEvent(event); |
148 if (e != null) { | 148 if (e != null) { |
149 events.add(e); | 149 events.add(e); |
150 } | 150 } |
151 } | 151 } |
152 | 152 |
153 void _registerPages() { | 153 void _registerPages() { |
154 _pageRegistry.add(new VMPage(this)); | 154 _pageRegistry.add(new VMPage(this)); |
155 _pageRegistry.add(new FlagsPage(this)); | 155 _pageRegistry.add(new FlagsPage(this)); |
| 156 _pageRegistry.add(new NativeMemoryProfilerPage(this)); |
156 _pageRegistry.add(new InspectPage(this)); | 157 _pageRegistry.add(new InspectPage(this)); |
157 _pageRegistry.add(new ClassTreePage(this)); | 158 _pageRegistry.add(new ClassTreePage(this)); |
158 _pageRegistry.add(new DebuggerPage(this)); | 159 _pageRegistry.add(new DebuggerPage(this)); |
159 _pageRegistry.add(new ObjectStorePage(this)); | 160 _pageRegistry.add(new ObjectStorePage(this)); |
160 _pageRegistry.add(new CpuProfilerPage(this)); | 161 _pageRegistry.add(new CpuProfilerPage(this)); |
161 _pageRegistry.add(new TableCpuProfilerPage(this)); | 162 _pageRegistry.add(new TableCpuProfilerPage(this)); |
162 _pageRegistry.add(new AllocationProfilerPage(this)); | 163 _pageRegistry.add(new AllocationProfilerPage(this)); |
163 _pageRegistry.add(new HeapMapPage(this)); | 164 _pageRegistry.add(new HeapMapPage(this)); |
164 _pageRegistry.add(new HeapSnapshotPage(this)); | 165 _pageRegistry.add(new HeapSnapshotPage(this)); |
165 _pageRegistry.add(new VMConnectPage(this)); | 166 _pageRegistry.add(new VMConnectPage(this)); |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 } | 281 } |
281 | 282 |
282 // TODO(turnidge): Report this failure via analytics. | 283 // TODO(turnidge): Report this failure via analytics. |
283 Logger.root.warning('Caught exception: ${e}\n${st}'); | 284 Logger.root.warning('Caught exception: ${e}\n${st}'); |
284 notifications.add(new ExceptionNotification(e, stacktrace: st)); | 285 notifications.add(new ExceptionNotification(e, stacktrace: st)); |
285 } | 286 } |
286 | 287 |
287 // This map keeps track of which curly-blocks have been expanded by the user. | 288 // This map keeps track of which curly-blocks have been expanded by the user. |
288 Map<String, bool> expansions = {}; | 289 Map<String, bool> expansions = {}; |
289 } | 290 } |
OLD | NEW |