| 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;
|
| });
|
|
|