| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 5 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 6 // for details. All rights reserved. Use of this source code is governed by a | 6 // for details. All rights reserved. Use of this source code is governed by a |
| 7 // BSD-style license that can be found in the LICENSE file. | 7 // BSD-style license that can be found in the LICENSE file. |
| 8 | 8 |
| 9 import 'dart:async'; | 9 import 'dart:async'; |
| 10 import 'dart:html'; | 10 import 'dart:html'; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 children = []; | 104 children = []; |
| 105 } | 105 } |
| 106 | 106 |
| 107 void render() { | 107 void render() { |
| 108 final content = [ | 108 final content = [ |
| 109 new NavBarElement(queue: _r.queue) | 109 new NavBarElement(queue: _r.queue) |
| 110 ..children = [ | 110 ..children = [ |
| 111 new NavTopMenuElement(queue: _r.queue), | 111 new NavTopMenuElement(queue: _r.queue), |
| 112 new NavVMMenuElement(_vm, _events, queue: _r.queue), | 112 new NavVMMenuElement(_vm, _events, queue: _r.queue), |
| 113 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), | 113 new NavIsolateMenuElement(_isolate, _events, queue: _r.queue), |
| 114 new NavMenuElement('heap snapshot', link: Uris.profiler(_isolate), | 114 new NavMenuElement('heap snapshot', link: Uris.heapSnapshot(_isolate), |
| 115 last: true, queue: _r.queue), | 115 last: true, queue: _r.queue), |
| 116 new NavRefreshElement(queue: _r.queue) | 116 new NavRefreshElement(queue: _r.queue) |
| 117 ..disabled = M.isHeapSnapshotProgressRunning(_progress?.status) | 117 ..disabled = M.isHeapSnapshotProgressRunning(_progress?.status) |
| 118 ..onRefresh.listen((e) { | 118 ..onRefresh.listen((e) { |
| 119 _refresh(); | 119 _refresh(); |
| 120 }), | 120 }), |
| 121 new NavNotifyElement(_notifications, queue: _r.queue) | 121 new NavNotifyElement(_notifications, queue: _r.queue) |
| 122 ], | 122 ], |
| 123 ]; | 123 ]; |
| 124 if (_progress == null) { | 124 if (_progress == null) { |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 selected: _mode == mode) | 408 selected: _mode == mode) |
| 409 ..text = modeToString(mode); | 409 ..text = modeToString(mode); |
| 410 }).toList(growable: false) | 410 }).toList(growable: false) |
| 411 ..onChange.listen((_) { | 411 ..onChange.listen((_) { |
| 412 _mode = HeapSnapshotTreeMode.values[s.selectedIndex]; | 412 _mode = HeapSnapshotTreeMode.values[s.selectedIndex]; |
| 413 _r.dirty(); | 413 _r.dirty(); |
| 414 }) | 414 }) |
| 415 ]; | 415 ]; |
| 416 } | 416 } |
| 417 } | 417 } |
| OLD | NEW |