Index: runtime/observatory/lib/src/elements/nav/isolate_menu.dart |
diff --git a/runtime/observatory/lib/src/elements/nav/isolate_menu.dart b/runtime/observatory/lib/src/elements/nav/isolate_menu.dart |
index a5b64f1d51e37d0e47fad4740aaefedc9ee4e3aa..771d785788acc3aba80168d43a9f44408eb00a50 100644 |
--- a/runtime/observatory/lib/src/elements/nav/isolate_menu.dart |
+++ b/runtime/observatory/lib/src/elements/nav/isolate_menu.dart |
@@ -4,8 +4,7 @@ |
import 'dart:html'; |
import 'dart:async'; |
-import 'package:observatory/models.dart' as M |
- show IsolateRef, EventRepository; |
+import 'package:observatory/models.dart' as M show IsolateRef, EventRepository; |
import 'package:observatory/src/elements/helpers/nav_menu.dart'; |
import 'package:observatory/src/elements/helpers/rendering_scheduler.dart'; |
import 'package:observatory/src/elements/helpers/tag.dart'; |
@@ -14,7 +13,7 @@ import 'package:observatory/src/elements/nav/menu_item.dart'; |
class NavIsolateMenuElement extends HtmlElement implements Renderable { |
static const tag = const Tag<NavIsolateMenuElement>('nav-isolate-menu', |
- dependencies: const [NavMenuItemElement.tag]); |
+ dependencies: const [NavMenuItemElement.tag]); |
RenderingScheduler _r; |
@@ -33,8 +32,8 @@ class NavIsolateMenuElement extends HtmlElement implements Renderable { |
_r.dirty(); |
} |
- factory NavIsolateMenuElement(M.IsolateRef isolate, |
- M.EventRepository events, {RenderingQueue queue}) { |
+ factory NavIsolateMenuElement(M.IsolateRef isolate, M.EventRepository events, |
+ {RenderingQueue queue}) { |
assert(isolate != null); |
assert(events != null); |
NavIsolateMenuElement e = document.createElement(tag.name); |
@@ -50,8 +49,11 @@ class NavIsolateMenuElement extends HtmlElement implements Renderable { |
void attached() { |
super.attached(); |
_updatesSubscription = _events.onIsolateUpdate |
- .where((e) => e.isolate.id == isolate.id) |
- .listen((e) { _isolate = e.isolate; _r.dirty(); }); |
+ .where((e) => e.isolate.id == isolate.id) |
+ .listen((e) { |
+ _isolate = e.isolate; |
+ _r.dirty(); |
+ }); |
_r.enable(); |
} |
@@ -67,32 +69,31 @@ class NavIsolateMenuElement extends HtmlElement implements Renderable { |
void render() { |
final content = [ |
- new NavMenuItemElement('debugger', queue: _r.queue, |
- link: Uris.debugger(isolate)), |
- new NavMenuItemElement('class hierarchy', queue: _r.queue, |
- link: Uris.classTree(isolate)), |
- new NavMenuItemElement('cpu profile', queue: _r.queue, |
- link: Uris.cpuProfiler(isolate)), |
- new NavMenuItemElement('cpu profile (table)', queue: _r.queue, |
- link: Uris.cpuProfilerTable(isolate)), |
- new NavMenuItemElement('allocation profile', queue: _r.queue, |
- link: Uris.allocationProfiler(isolate)), |
- new NavMenuItemElement('heap map', queue: _r.queue, |
- link: Uris.heapMap(isolate)), |
- new NavMenuItemElement('metrics', queue: _r.queue, |
- link: Uris.metrics(isolate)), |
- new NavMenuItemElement('heap snapshot', queue: _r.queue, |
- link: Uris.heapSnapshot(isolate)), |
- new NavMenuItemElement('persistent handles', queue: _r.queue, |
- link: Uris.persistentHandles(isolate)), |
- new NavMenuItemElement('ports', queue: _r.queue, |
- link: Uris.ports(isolate)), |
- new NavMenuItemElement('logging', queue: _r.queue, |
- link: Uris.logging(isolate)), |
+ new NavMenuItemElement('debugger', |
+ queue: _r.queue, link: Uris.debugger(isolate)), |
+ new NavMenuItemElement('class hierarchy', |
+ queue: _r.queue, link: Uris.classTree(isolate)), |
+ new NavMenuItemElement('cpu profile', |
+ queue: _r.queue, link: Uris.cpuProfiler(isolate)), |
+ new NavMenuItemElement('cpu profile (table)', |
+ queue: _r.queue, link: Uris.cpuProfilerTable(isolate)), |
+ new NavMenuItemElement('allocation profile', |
+ queue: _r.queue, link: Uris.allocationProfiler(isolate)), |
+ new NavMenuItemElement('heap map', |
+ queue: _r.queue, link: Uris.heapMap(isolate)), |
+ new NavMenuItemElement('metrics', |
+ queue: _r.queue, link: Uris.metrics(isolate)), |
+ new NavMenuItemElement('heap snapshot', |
+ queue: _r.queue, link: Uris.heapSnapshot(isolate)), |
+ new NavMenuItemElement('persistent handles', |
+ queue: _r.queue, link: Uris.persistentHandles(isolate)), |
+ new NavMenuItemElement('ports', |
+ queue: _r.queue, link: Uris.ports(isolate)), |
+ new NavMenuItemElement('logging', |
+ queue: _r.queue, link: Uris.logging(isolate)), |
]..addAll(_content); |
children = [ |
- navMenu(isolate.name, content: content, |
- link: Uris.inspect(isolate)) |
+ navMenu(isolate.name, content: content, link: Uris.inspect(isolate)) |
]; |
} |
} |