Index: runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart |
diff --git a/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart b/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart |
index 3eed1fb738df1ecb8ad2a8d5cd009770bf8a05ca..00c55b9be3d31ff8aa38745ef439c5511b07d5c8 100644 |
--- a/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart |
+++ b/runtime/observatory/lib/src/elements/cpu_profile/virtual_tree.dart |
@@ -49,8 +49,7 @@ class CpuProfileVirtualTreeElement extends HtmlElement implements Renderable { |
_r.dirty(); |
} |
- factory CpuProfileVirtualTreeElement( |
- M.IsolateRef isolate, M.SampleProfile profile, |
+ factory CpuProfileVirtualTreeElement(Object owner, M.SampleProfile profile, |
{ProfileTreeMode mode: ProfileTreeMode.function, |
M.SampleProfileType type: M.SampleProfileType.cpu, |
M.ProfileTreeDirection direction: M.ProfileTreeDirection.exclusive, |
@@ -60,7 +59,7 @@ class CpuProfileVirtualTreeElement extends HtmlElement implements Renderable { |
assert(direction != null); |
CpuProfileVirtualTreeElement e = document.createElement(tag.name); |
e._r = new RenderingScheduler(e, queue: queue); |
- e._isolate = isolate; |
+ e._isolate = owner; |
e._profile = profile; |
e._mode = mode; |
e._type = type; |
@@ -117,7 +116,6 @@ class CpuProfileVirtualTreeElement extends HtmlElement implements Renderable { |
break; |
default: |
throw new Exception('Unknown SampleProfileType: $type'); |
- break; |
rmacnak
2017/03/29 17:20:44
I think the analyzer has gone back and forth on wh
|
} |
if (filters != null) { |
tree = filters.fold(tree, (tree, filter) { |