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

Side by Side Diff: runtime/observatory/lib/src/service/object.dart

Issue 1275173003: Minor Observatory UI tweaks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.dart ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 service; 5 part of service;
6 6
7 /// Helper function for canceling a Future<StreamSubscription>. 7 /// Helper function for canceling a Future<StreamSubscription>.
8 Future cancelFutureSubscription( 8 Future cancelFutureSubscription(
9 Future<StreamSubscription> subscriptionFuture) async { 9 Future<StreamSubscription> subscriptionFuture) async {
10 if (subscriptionFuture != null) { 10 if (subscriptionFuture != null) {
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 variables.sort(ServiceObject.LexicalSortName); 1944 variables.sort(ServiceObject.LexicalSortName);
1945 functions.clear(); 1945 functions.clear();
1946 functions.addAll(map['functions']); 1946 functions.addAll(map['functions']);
1947 functions.sort(ServiceObject.LexicalSortName); 1947 functions.sort(ServiceObject.LexicalSortName);
1948 } 1948 }
1949 1949
1950 Future<ServiceObject> evaluate(String expression) { 1950 Future<ServiceObject> evaluate(String expression) {
1951 return isolate._eval(this, expression); 1951 return isolate._eval(this, expression);
1952 } 1952 }
1953 1953
1954 Script get rootScript {
1955 for (Script script in scripts) {
1956 if (script.uri == uri) return script;
1957 }
1958 return null;
1959 }
1960
1954 String toString() => "Library($uri)"; 1961 String toString() => "Library($uri)";
1955 } 1962 }
1956 1963
1957 class AllocationCount extends Observable { 1964 class AllocationCount extends Observable {
1958 @observable int instances = 0; 1965 @observable int instances = 0;
1959 @observable int bytes = 0; 1966 @observable int bytes = 0;
1960 1967
1961 void reset() { 1968 void reset() {
1962 instances = 0; 1969 instances = 0;
1963 bytes = 0; 1970 bytes = 0;
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after
3685 var v = list[i]; 3692 var v = list[i];
3686 if ((v is ObservableMap) && _isServiceMap(v)) { 3693 if ((v is ObservableMap) && _isServiceMap(v)) {
3687 list[i] = owner.getFromMap(v); 3694 list[i] = owner.getFromMap(v);
3688 } else if (v is ObservableList) { 3695 } else if (v is ObservableList) {
3689 _upgradeObservableList(v, owner); 3696 _upgradeObservableList(v, owner);
3690 } else if (v is ObservableMap) { 3697 } else if (v is ObservableMap) {
3691 _upgradeObservableMap(v, owner); 3698 _upgradeObservableMap(v, owner);
3692 } 3699 }
3693 } 3700 }
3694 } 3701 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/script_inset.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698