| 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)); | |
| 157 _pageRegistry.add(new InspectPage(this)); | 156 _pageRegistry.add(new InspectPage(this)); |
| 158 _pageRegistry.add(new ClassTreePage(this)); | 157 _pageRegistry.add(new ClassTreePage(this)); |
| 159 _pageRegistry.add(new DebuggerPage(this)); | 158 _pageRegistry.add(new DebuggerPage(this)); |
| 160 _pageRegistry.add(new ObjectStorePage(this)); | 159 _pageRegistry.add(new ObjectStorePage(this)); |
| 161 _pageRegistry.add(new CpuProfilerPage(this)); | 160 _pageRegistry.add(new CpuProfilerPage(this)); |
| 162 _pageRegistry.add(new TableCpuProfilerPage(this)); | 161 _pageRegistry.add(new TableCpuProfilerPage(this)); |
| 163 _pageRegistry.add(new AllocationProfilerPage(this)); | 162 _pageRegistry.add(new AllocationProfilerPage(this)); |
| 164 _pageRegistry.add(new HeapMapPage(this)); | 163 _pageRegistry.add(new HeapMapPage(this)); |
| 165 _pageRegistry.add(new HeapSnapshotPage(this)); | 164 _pageRegistry.add(new HeapSnapshotPage(this)); |
| 166 _pageRegistry.add(new VMConnectPage(this)); | 165 _pageRegistry.add(new VMConnectPage(this)); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 280 } |
| 282 | 281 |
| 283 // TODO(turnidge): Report this failure via analytics. | 282 // TODO(turnidge): Report this failure via analytics. |
| 284 Logger.root.warning('Caught exception: ${e}\n${st}'); | 283 Logger.root.warning('Caught exception: ${e}\n${st}'); |
| 285 notifications.add(new ExceptionNotification(e, stacktrace: st)); | 284 notifications.add(new ExceptionNotification(e, stacktrace: st)); |
| 286 } | 285 } |
| 287 | 286 |
| 288 // This map keeps track of which curly-blocks have been expanded by the user. | 287 // This map keeps track of which curly-blocks have been expanded by the user. |
| 289 Map<String, bool> expansions = {}; | 288 Map<String, bool> expansions = {}; |
| 290 } | 289 } |
| OLD | NEW |