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

Unified Diff: runtime/observatory/lib/src/elements/object_common.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, 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 side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/object_common.dart
diff --git a/runtime/observatory/lib/src/elements/object_common.dart b/runtime/observatory/lib/src/elements/object_common.dart
index 6079530b3bdb7cf7a577ff4f2dfc94616b5944d5..929ebd6f4200a7b25c04d00ffd0fce55e0d017cd 100644
--- a/runtime/observatory/lib/src/elements/object_common.dart
+++ b/runtime/observatory/lib/src/elements/object_common.dart
@@ -20,21 +20,19 @@ class ObjectCommonElement extends ObservatoryElement {
// TODO(koda): Add no-arg "calculate-link" instead of reusing "eval-link".
Future<ServiceObject> retainedSize(var dummy) {
- return object.isolate.get(object.id + "/retained")
- .then((Instance obj) {
- retainedBytes = int.parse(obj.valueAsString);
- });
+ return object.isolate.getRetainedSize(object).then((Instance obj) {
+ retainedBytes = int.parse(obj.valueAsString);
+ });
}
- Future<ServiceObject> retainingPath(var arg) {
- return object.isolate.get(object.id + "/retaining_path?limit=$arg")
- .then((ServiceObject obj) {
- path = obj;
- });
+ Future<ServiceObject> retainingPath(var limit) {
+ return object.isolate.getRetainingPath(object, limit).then((ServiceObject obj) {
+ path = obj;
+ });
}
- Future<ServiceObject> fetchInboundReferences(var arg) {
- return object.isolate.get(object.id + "/inbound_references?limit=$arg")
+ Future<ServiceObject> fetchInboundReferences(var limit) {
+ return object.isolate.getInboundReferences(object, limit)
.then((ServiceObject obj) {
inboundReferences = obj;
});
« no previous file with comments | « runtime/observatory/lib/src/elements/nav_bar.html ('k') | runtime/observatory/lib/src/elements/script_inset.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698