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

Unified 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, 11 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 | « no previous file | runtime/observatory/lib/src/models/objects/vm.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/lib/src/elements/vm_view.dart
diff --git a/runtime/observatory/lib/src/elements/vm_view.dart b/runtime/observatory/lib/src/elements/vm_view.dart
index 42fabbbf8786b853ba53cb857dd709e83ae2c2a1..b635391d041d4dbc3a32726cf6ef00e7afad7b98 100644
--- a/runtime/observatory/lib/src/elements/vm_view.dart
+++ b/runtime/observatory/lib/src/elements/vm_view.dart
@@ -192,6 +192,28 @@ class VMViewElement extends HtmlElement implements Renderable {
..text = Utils.formatSize(_vm.nativeZoneMemoryUsage)
..title = '${_vm.nativeZoneMemoryUsage} bytes'
],
+ new DivElement()
+ ..classes = ['memberItem']
+ ..children = [
+ new DivElement()
+ ..classes = ['memberName']
+ ..text = 'native heap memory',
+ new DivElement()
+ ..classes = ['memberValue']
+ ..text = Utils.formatSize(_vm.heapAllocatedMemoryUsage)
+ ..title = '${_vm.heapAllocatedMemoryUsage} bytes'
+ ],
+ new DivElement()
+ ..classes = ['memberItem']
+ ..children = [
+ new DivElement()
+ ..classes = ['memberName']
+ ..text = 'native heap allocation count',
+ new DivElement()
+ ..classes = ['memberValue']
+ ..text = _vm.heapAllocationCount
+ ],
+
new BRElement(),
new DivElement()
..classes = ['memberItem']
« 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