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

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

Issue 993613002: Implement 'print', 'up', 'down', and 'frame' commands in the Observatory debugger. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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) 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 /// A [ServiceObject] represents a persistent object within the vm. 7 /// A [ServiceObject] represents a persistent object within the vm.
8 abstract class ServiceObject extends Observable { 8 abstract class ServiceObject extends Observable {
9 static int LexicalSortName(ServiceObject o1, ServiceObject o2) { 9 static int LexicalSortName(ServiceObject o1, ServiceObject o2) {
10 return o1.name.compareTo(o2.name); 10 return o1.name.compareTo(o2.name);
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 1200
1201 Future<ServiceObject> eval(ServiceObject target, 1201 Future<ServiceObject> eval(ServiceObject target,
1202 String expression) { 1202 String expression) {
1203 Map params = { 1203 Map params = {
1204 'targetId': target.id, 1204 'targetId': target.id,
1205 'expression': expression, 1205 'expression': expression,
1206 }; 1206 };
1207 return invokeRpc('eval', params); 1207 return invokeRpc('eval', params);
1208 } 1208 }
1209 1209
1210 Future<ServiceObject> evalFrame(int framePos,
1211 String expression) {
1212 Map params = {
1213 'frame': framePos,
1214 'expression': expression,
1215 };
1216 return invokeRpc('evalFrame', params);
1217 }
1218
1210 Future<ServiceObject> getRetainedSize(ServiceObject target) { 1219 Future<ServiceObject> getRetainedSize(ServiceObject target) {
1211 Map params = { 1220 Map params = {
1212 'targetId': target.id, 1221 'targetId': target.id,
1213 }; 1222 };
1214 return invokeRpc('getRetainedSize', params); 1223 return invokeRpc('getRetainedSize', params);
1215 } 1224 }
1216 1225
1217 Future<ServiceObject> getRetainingPath(ServiceObject target, var limit) { 1226 Future<ServiceObject> getRetainingPath(ServiceObject target, var limit) {
1218 Map params = { 1227 Map params = {
1219 'targetId': target.id, 1228 'targetId': target.id,
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after
2895 var v = list[i]; 2904 var v = list[i];
2896 if ((v is ObservableMap) && _isServiceMap(v)) { 2905 if ((v is ObservableMap) && _isServiceMap(v)) {
2897 list[i] = owner.getFromMap(v); 2906 list[i] = owner.getFromMap(v);
2898 } else if (v is ObservableList) { 2907 } else if (v is ObservableList) {
2899 _upgradeObservableList(v, owner); 2908 _upgradeObservableList(v, owner);
2900 } else if (v is ObservableMap) { 2909 } else if (v is ObservableMap) {
2901 _upgradeObservableMap(v, owner); 2910 _upgradeObservableMap(v, owner);
2902 } 2911 }
2903 } 2912 }
2904 } 2913 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698