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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/observatory/application.dart

Issue 145323002: Post-meetup feature extravaganza. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 11 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
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 observatory; 5 part of observatory;
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 @observable final LocationManager locationManager; 10 @observable final LocationManager locationManager;
11 @observable final RequestManager requestManager; 11 @observable final RequestManager requestManager;
12 @observable final IsolateManager isolateManager; 12 @observable final IsolateManager isolateManager;
13 13
14 void _setup() { 14 void _setup() {
15 locationManager._application = this; 15 locationManager._application = this;
16 requestManager._application = this; 16 requestManager._application = this;
17 isolateManager._application = this; 17 isolateManager._application = this;
18 Isolate._application = this;
18 requestManager.interceptor = isolateManager._responseInterceptor; 19 requestManager.interceptor = isolateManager._responseInterceptor;
19 locationManager.init(); 20 locationManager.init();
20 } 21 }
21 22
22 ObservatoryApplication.devtools() : 23 ObservatoryApplication.devtools() :
23 locationManager = new LocationManager(), 24 locationManager = new LocationManager(),
24 requestManager = new PostMessageRequestManager(), 25 requestManager = new PostMessageRequestManager(),
25 isolateManager = new IsolateManager() { 26 isolateManager = new IsolateManager() {
26 _setup(); 27 _setup();
27 } 28 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return '${y.toStringAsFixed(1)} KB'; 63 return '${y.toStringAsFixed(1)} KB';
63 } 64 }
64 var y = x.toDouble(); 65 var y = x.toDouble();
65 return '${y.toStringAsFixed(1)} B'; 66 return '${y.toStringAsFixed(1)} B';
66 } 67 }
67 68
68 static String timeUnits(double x) { 69 static String timeUnits(double x) {
69 return x.toStringAsFixed(4); 70 return x.toStringAsFixed(4);
70 } 71 }
71 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698