Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Side by Side Diff: runtime/observatory/lib/src/app/application.dart

Issue 823403004: Begin migrating the vm service from a rest-style interface to a json-rpc style interface. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove old-style standalone tests. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/observatory/lib/service_html.dart ('k') | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/service_html.dart ('k') | runtime/observatory/lib/src/app/page.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698