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

Side by Side Diff: runtime/observatory/lib/src/elements/heap_snapshot.dart

Issue 2273203004: Converted Observatory persistent-hangles-page element (Closed)
Patch Set: Addressed comments and fixed style 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 unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/error_ref_wrapper.dart ('k') | runtime/observatory/lib/src/elements/helpers/uris.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698