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

Unified Diff: runtime/observatory/lib/src/elements/vm_view.dart

Issue 2748403002: Added page to Observatory to display native memory allocation information. (Closed)
Patch Set: Final patch. Created 3 years, 9 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/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 b635391d041d4dbc3a32726cf6ef00e7afad7b98..32dd871da18abdbe9a454e825447ede5fd1d704f 100644
--- a/runtime/observatory/lib/src/elements/vm_view.dart
+++ b/runtime/observatory/lib/src/elements/vm_view.dart
@@ -211,7 +211,7 @@ class VMViewElement extends HtmlElement implements Renderable {
..text = 'native heap allocation count',
new DivElement()
..classes = ['memberValue']
- ..text = _vm.heapAllocationCount
+ ..text = '${_vm.heapAllocationCount}'
],
new BRElement(),
@@ -231,7 +231,18 @@ class VMViewElement extends HtmlElement implements Renderable {
new AnchorElement(href: Uris.timeline())
..text = 'timeline'
]
- ]
+ ],
+ new DivElement()
+ ..classes = ['memberItem']
+ ..children = [
+ new DivElement()
+ ..classes = ['memberName']
+ ..children = [
+ new SpanElement()..text = 'view ',
+ new AnchorElement(href: Uris.nativeMemory())
+ ..text = 'native memory profile'
+ ]
+ ]
],
new BRElement(),
new HeadingElement.h1()..text = 'Isolates (${isolates.length})',

Powered by Google App Engine
This is Rietveld 408576698