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

Side by Side Diff: runtime/bin/vmservice/client/lib/src/elements/class_view.html

Issue 351703002: Class view: list all/sample instances on request. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/class_view.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="../../../../packages/polymer/polymer.html"> 1 <link rel="import" href="../../../../packages/polymer/polymer.html">
2 <link rel="import" href="curly_block.html"> 2 <link rel="import" href="curly_block.html">
3 <link rel="import" href="eval_box.html"> 3 <link rel="import" href="eval_box.html">
4 <link rel="import" href="eval_link.html"> 4 <link rel="import" href="eval_link.html">
5 <link rel="import" href="field_ref.html"> 5 <link rel="import" href="field_ref.html">
6 <link rel="import" href="function_ref.html"> 6 <link rel="import" href="function_ref.html">
7 <link rel="import" href="instance_ref.html"> 7 <link rel="import" href="instance_ref.html">
8 <link rel="import" href="library_ref.html"> 8 <link rel="import" href="library_ref.html">
9 <link rel="import" href="nav_bar.html"> 9 <link rel="import" href="nav_bar.html">
10 <link rel="import" href="observatory_element.html"> 10 <link rel="import" href="observatory_element.html">
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 <function-ref ref="{{ function }}" qualified="{{ false }}"> 127 <function-ref ref="{{ function }}" qualified="{{ false }}">
128 </function-ref> 128 </function-ref>
129 </div> 129 </div>
130 </div> 130 </div>
131 </template> 131 </template>
132 </div> 132 </div>
133 </curly-block><br><br> 133 </curly-block><br><br>
134 </template> 134 </template>
135 135
136 <template if="{{ !cls.hasNoAllocations }}"> 136 <template if="{{ !cls.hasNoAllocations }}">
137 current instances ({{ cls.newSpace.current.instances + cls.oldSpace.curr ent.instances }}) 137 instances
138 <div class="memberItem"> 138 <div class="memberItem">
139 <div class="memberName">shallow size</div> 139 <div class="memberName">currently allocated</div>
140 <div class="memberValue"> 140 <div class="memberValue">
141 {{ cls.newSpace.current.bytes + cls.oldSpace.current.bytes | forma tSize }} 141 count {{ cls.newSpace.current.instances + cls.oldSpace.current.ins tances }}
142 (shallow size {{ cls.newSpace.current.bytes + cls.oldSpace.current .bytes | formatSize }})
143 </div>
144 </div>
145 <div class="memberItem">
146 <div class="memberName">strongly reachable</div>
147 <div class="memberValue">
148 <template if="{{ instances == null }}">
149 <eval-link callback="{{ reachable }}"
150 label="[find]"
151 expr="100">
152 </eval-link>
153 </template>
154 <template if="{{ instances != null }}">
155 sample
156 <instance-ref ref="{{ instances['sample'] }}"></instance-ref>
157 <template if="{{ instances['totalCount'] > instances['sampleCoun t'] }}">
158 <eval-link callback="{{ reachable }}"
159 label="[more]"
160 expr="{{ instances['sampleCount'] * 2 }}">
161 </eval-link>
162 </template>
163 of total {{ instances['totalCount'] }}
164 </template>
142 </div> 165 </div>
143 </div> 166 </div>
144 <div class="memberItem"> 167 <div class="memberItem">
145 <div class="memberName">retained size</div> 168 <div class="memberName">retained size</div>
146 <div class="memberValue"> 169 <div class="memberValue">
147 <template if="{{ retainedBytes == null }}"> 170 <template if="{{ retainedBytes == null }}">
148 <eval-link callback="{{ retainedSize }}" 171 <eval-link callback="{{ retainedSize }}"
149 label="[calculate]"> 172 label="[calculate]">
150 </eval-link> 173 </eval-link>
151 </template> 174 </template>
152 <template if="{{ retainedBytes != null }}"> 175 <template if="{{ retainedBytes != null }}">
153 {{ retainedBytes | formatSize }} 176 {{ retainedBytes | formatSize }}
154 </template> 177 </template>
155 </div> 178 </div>
156 </div> 179 </div>
157 </template> 180 </template>
158 </div> 181 </div>
159 182
160 <hr> 183 <hr>
161 184
162 <div class="content"> 185 <div class="content">
163 <eval-box callback="{{ eval }}"></eval-box> 186 <eval-box callback="{{ eval }}"></eval-box>
164 </div> 187 </div>
165 <br><br><br><br> 188 <br><br><br><br>
166 <br><br><br><br> 189 <br><br><br><br>
167 </template> 190 </template>
168 </polymer-element> 191 </polymer-element>
169 192
170 <script type="application/dart" src="class_view.dart"></script> 193 <script type="application/dart" src="class_view.dart"></script>
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/class_view.dart ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698