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

Unified Diff: runtime/bin/vmservice/client/lib/src/elements/instance_view.dart

Issue 292663012: Retaining path in Observatory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/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);
}

Powered by Google App Engine
This is Rietveld 408576698