| 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 extends Observable { | 9 class ObservatoryApplication extends Observable { |
| 10 static ObservatoryApplication app; | 10 static ObservatoryApplication app; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 default: | 98 default: |
| 99 // Ignore unrecognized events. | 99 // Ignore unrecognized events. |
| 100 Logger.root.severe('Unrecognized event: $event'); | 100 Logger.root.severe('Unrecognized event: $event'); |
| 101 break; | 101 break; |
| 102 } | 102 } |
| 103 } | 103 } |
| 104 | 104 |
| 105 void _registerPages() { | 105 void _registerPages() { |
| 106 _pageRegistry.add(new ClassTreePage(this)); | 106 _pageRegistry.add(new ClassTreePage(this)); |
| 107 _pageRegistry.add(new DebuggerPage(this)); | 107 _pageRegistry.add(new DebuggerPage(this)); |
| 108 _pageRegistry.add(new CpuProfilerPage(this)); |
| 109 _pageRegistry.add(new AllocationProfilerPage(this)); |
| 110 _pageRegistry.add(new HeapMapPage(this)); |
| 108 _pageRegistry.add(new VMConnectPage(this)); | 111 _pageRegistry.add(new VMConnectPage(this)); |
| 109 _pageRegistry.add(new ErrorViewPage(this)); | 112 _pageRegistry.add(new ErrorViewPage(this)); |
| 110 _pageRegistry.add(new MetricsPage(this)); | 113 _pageRegistry.add(new MetricsPage(this)); |
| 111 // Note that ServiceObjectPage must be the last entry in the list as it is | 114 // Note that ServiceObjectPage must be the last entry in the list as it is |
| 112 // the catch all. | 115 // the catch all. |
| 113 _pageRegistry.add(new ServiceObjectPage(this)); | 116 _pageRegistry.add(new ServiceObjectPage(this)); |
| 114 } | 117 } |
| 115 | 118 |
| 116 void _onError(ServiceError error) { | 119 void _onError(ServiceError error) { |
| 117 lastErrorOrException = error; | 120 lastErrorOrException = error; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 224 |
| 222 _vmDisconnected(VM vm) { | 225 _vmDisconnected(VM vm) { |
| 223 if (this.vm != vm) { | 226 if (this.vm != vm) { |
| 224 // This disconnect event occured *after* a new VM was installed. | 227 // This disconnect event occured *after* a new VM was installed. |
| 225 return; | 228 return; |
| 226 } | 229 } |
| 227 this.vm = null; | 230 this.vm = null; |
| 228 notifications.add(new ServiceEvent.vmDisconencted()); | 231 notifications.add(new ServiceEvent.vmDisconencted()); |
| 229 } | 232 } |
| 230 } | 233 } |
| OLD | NEW |