Index: runtime/bin/vmservice/client/lib/src/elements/instance_view.dart |
=================================================================== |
--- runtime/bin/vmservice/client/lib/src/elements/instance_view.dart (revision 36435) |
+++ runtime/bin/vmservice/client/lib/src/elements/instance_view.dart (working copy) |
@@ -12,6 +12,7 @@ |
@CustomTag('instance-view') |
class InstanceViewElement extends ObservatoryElement { |
@published ServiceMap instance; |
+ @published ServiceMap path; |
InstanceViewElement.created() : super.created(); |
@@ -21,10 +22,17 @@ |
} |
// TODO(koda): Add no-arg "calculate-link" instead of reusing "eval-link". |
- Future<ServiceObject> retainedSize(String dummy) { |
+ Future<ServiceObject> retainedSize(var dummy) { |
return instance.isolate.get(instance.id + "/retained"); |
} |
+ Future<ServiceObject> retainingPath(var arg) { |
+ return instance.isolate.get(instance.id + "/retaining_path?limit=$arg") |
+ .then((ServiceObject obj) { |
+ path = obj; |
+ }); |
+ } |
+ |
void refresh(var done) { |
instance.reload().whenComplete(done); |
} |