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

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

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
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/instance_view.dart ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/vmservice/client/lib/src/elements/instance_view.html
===================================================================
--- runtime/bin/vmservice/client/lib/src/elements/instance_view.html (revision 36435)
+++ runtime/bin/vmservice/client/lib/src/elements/instance_view.html (working copy)
@@ -55,9 +55,41 @@
<div class="memberItem">
<div class="memberName">retained size</div>
<div class="memberValue">
- <eval-link callback="{{ retainedSize }}"></eval-link>
+ <eval-link callback="{{ retainedSize }}"
+ label="[calculate]">
+ </eval-link>
</div>
</div>
+ </div>
+ <div class="memberItem">
+ <div class="memberName">retaining path</div>
+ <div class="memberValue">
+ <template if="{{ path == null }}">
+ <eval-link callback="{{ retainingPath }}"
+ label="[find]"
+ expr="10">
+ </eval-link>
+ </template>
+ <template if="{{ path != null }}">
+ <template repeat="{{ element in path['elements'] }}">
+ <div class="memberItem">
+ <div class="memberName">[{{ element['index']}}]</div>
+ <div class="memberValue">
+ <instance-ref ref="{{ element['value'] }}"></instance-ref>
+ </div>
+ </div>
+ </template>
+ <template if="{{ path['length'] > path['elements'].length }}">
+ showing {{ path['elements'].length }} of {{ path['length'] }}
+ <eval-link
+ callback="{{ retainingPath }}"
+ label="[find more]"
+ expr="{{ path['elements'].length * 2 }}">
+ </eval-link>
+ </template>
+ </template>
+ </div>
+ </div>
<template if="{{ instance['type_class'] != null }}">
<div class="memberItem">
<div class="memberName">type class</div>
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/instance_view.dart ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698