| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /// This Element is part of MemoryDashboardElement. | 5 /// This Element is part of MemoryDashboardElement. |
| 6 /// | 6 /// |
| 7 /// The Element is stripped down version of AllocationProfileElement where | 7 /// The Element is stripped down version of AllocationProfileElement where |
| 8 /// concepts like old and new space has been hidden away. | 8 /// concepts like old and new space has been hidden away. |
| 9 /// | 9 /// |
| 10 /// For each class in the system it is shown the Total number of instances | 10 /// For each class in the system it is shown the Total number of instances |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 assert(current != null); | 107 assert(current != null); |
| 108 | 108 |
| 109 final ButtonElement bReload = new ButtonElement(); | 109 final ButtonElement bReload = new ButtonElement(); |
| 110 final ButtonElement bGC = new ButtonElement(); | 110 final ButtonElement bGC = new ButtonElement(); |
| 111 children = [ | 111 children = [ |
| 112 new DivElement() | 112 new DivElement() |
| 113 ..classes = ['content-centered-big'] | 113 ..classes = ['content-centered-big'] |
| 114 ..children = [ | 114 ..children = [ |
| 115 new HeadingElement.h1() | 115 new HeadingElement.h1() |
| 116 ..children = [ | 116 ..children = [ |
| 117 new Text("Isolate ${_isolate.name}"), | 117 new Text(_isolate.name), |
| 118 bReload | 118 bReload |
| 119 ..classes = ['header_button'] | 119 ..classes = ['header_button'] |
| 120 ..text = ' ↺ Refresh' | 120 ..text = ' ↺ Refresh' |
| 121 ..title = 'Refresh' | 121 ..title = 'Refresh' |
| 122 ..onClick.listen((e) async { | 122 ..onClick.listen((e) async { |
| 123 bReload.disabled = true; | 123 bReload.disabled = true; |
| 124 bGC.disabled = true; | 124 bGC.disabled = true; |
| 125 await reload(); | 125 await reload(); |
| 126 bReload.disabled = false; | 126 bReload.disabled = false; |
| 127 bGC.disabled = false; | 127 bGC.disabled = false; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 154 _analysis = _Analysis.dominatorTree; | 154 _analysis = _Analysis.dominatorTree; |
| 155 _r.dirty(); | 155 _r.dirty(); |
| 156 }), | 156 }), |
| 157 ] | 157 ] |
| 158 ], | 158 ], |
| 159 ], | 159 ], |
| 160 current | 160 current |
| 161 ]; | 161 ]; |
| 162 } | 162 } |
| 163 } | 163 } |
| OLD | NEW |