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

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

Issue 2359553002: Misc Observatory tweaks. (Closed)
Patch Set: Created 4 years, 3 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/ports.dart
diff --git a/runtime/observatory/lib/src/elements/ports.dart b/runtime/observatory/lib/src/elements/ports.dart
index 793de378fa10de969e505b5e4395b3a39857c79e..262aaacdab1caf9a052ebf991d48d0e81387a269 100644
--- a/runtime/observatory/lib/src/elements/ports.dart
+++ b/runtime/observatory/lib/src/elements/ports.dart
@@ -73,6 +73,10 @@ class PortsElement extends HtmlElement implements Renderable {
PortsElement.created() : super.created();
+ int get portCount {
+ return _isolatePorts == null ? 0 : _isolatePorts.elements.length;
+ }
+
@override
void attached() {
super.attached();
@@ -101,11 +105,10 @@ class PortsElement extends HtmlElement implements Renderable {
new DivElement()
..classes = ['content-centered']
..children = [
- new HeadingElement.h1()..text = 'Ports',
- new BRElement(),
+ new HeadingElement.h1()..text = 'Ports ($portCount)',
new HRElement(),
+ new BRElement(),
new DivElement()..children = _createList(),
- new HRElement()
],
new ViewFooterElement(queue: _r.queue)
];

Powered by Google App Engine
This is Rietveld 408576698