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

Side by Side Diff: runtime/observatory/lib/src/elements/vm_view.dart

Issue 2667743004: Surfaced native heap memory allocation information to the Observatory (Closed)
Patch Set: Added method to check if MallocHooks have been initialized. Created 3 years, 10 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
« no previous file with comments | « no previous file | runtime/observatory/lib/src/models/objects/vm.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library vm_view_element; 5 library vm_view_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'package:observatory/models.dart' as M; 9 import 'package:observatory/models.dart' as M;
10 import 'package:observatory/src/elements/helpers/nav_bar.dart'; 10 import 'package:observatory/src/elements/helpers/nav_bar.dart';
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 ..classes = ['memberItem'] 185 ..classes = ['memberItem']
186 ..children = [ 186 ..children = [
187 new DivElement() 187 new DivElement()
188 ..classes = ['memberName'] 188 ..classes = ['memberName']
189 ..text = 'native zone memory', 189 ..text = 'native zone memory',
190 new DivElement() 190 new DivElement()
191 ..classes = ['memberValue'] 191 ..classes = ['memberValue']
192 ..text = Utils.formatSize(_vm.nativeZoneMemoryUsage) 192 ..text = Utils.formatSize(_vm.nativeZoneMemoryUsage)
193 ..title = '${_vm.nativeZoneMemoryUsage} bytes' 193 ..title = '${_vm.nativeZoneMemoryUsage} bytes'
194 ], 194 ],
195 new DivElement()
196 ..classes = ['memberItem']
197 ..children = [
198 new DivElement()
199 ..classes = ['memberName']
200 ..text = 'native heap memory',
201 new DivElement()
202 ..classes = ['memberValue']
203 ..text = Utils.formatSize(_vm.heapAllocatedMemoryUsage)
204 ..title = '${_vm.heapAllocatedMemoryUsage} bytes'
205 ],
206 new DivElement()
207 ..classes = ['memberItem']
208 ..children = [
209 new DivElement()
210 ..classes = ['memberName']
211 ..text = 'native heap allocation count',
212 new DivElement()
213 ..classes = ['memberValue']
214 ..text = _vm.heapAllocationCount
215 ],
216
195 new BRElement(), 217 new BRElement(),
196 new DivElement() 218 new DivElement()
197 ..classes = ['memberItem'] 219 ..classes = ['memberItem']
198 ..children = [ 220 ..children = [
199 new DivElement() 221 new DivElement()
200 ..classes = ['memberName'] 222 ..classes = ['memberName']
201 ..children = [ 223 ..children = [
202 new SpanElement()..text = 'see ', 224 new SpanElement()..text = 'see ',
203 new AnchorElement(href: Uris.flags())..text = 'flags' 225 new AnchorElement(href: Uris.flags())..text = 'flags'
204 ], 226 ],
(...skipping 21 matching lines...) Expand all
226 queue: _r.queue) 248 queue: _r.queue)
227 ], 249 ],
228 new HRElement() 250 new HRElement()
229 ]) 251 ])
230 .toList(), 252 .toList(),
231 new ViewFooterElement(queue: _r.queue) 253 new ViewFooterElement(queue: _r.queue)
232 ] 254 ]
233 ]; 255 ];
234 } 256 }
235 } 257 }
OLDNEW
« no previous file with comments | « no previous file | runtime/observatory/lib/src/models/objects/vm.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698