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

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

Issue 2277543004: Converted Observatory script-inset & source-inset elements (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixed long line 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 } else if (item is Iterable) { 346 } else if (item is Iterable) {
347 element.children[0].text = ''; 347 element.children[0].text = '';
348 if (item.isNotEmpty) { 348 if (item.isNotEmpty) {
349 element.children[2].text = _tree.isExpanded(item) ? '▼' : '►'; 349 element.children[2].text = _tree.isExpanded(item) ? '▼' : '►';
350 } else { 350 } else {
351 element.children[2].text = ''; 351 element.children[2].text = '';
352 } 352 }
353 element.children[3].text = ''; 353 element.children[3].text = '';
354 if (item is Iterable<M.HeapSnapshotClassInbound>) { 354 if (item is Iterable<M.HeapSnapshotClassInbound>) {
355 element.children[4] = new SpanElement()..classes = const ['name'] 355 element.children[4] = new SpanElement()..classes = const ['name']
356 ..text = '${item.length} Ingoing references'; 356 ..text = '${item.length} Incoming references';
357 } else { 357 } else {
358 element.children[4] = new SpanElement()..classes = const ['name'] 358 element.children[4] = new SpanElement()..classes = const ['name']
359 ..text = '${item.length} Outgoing references'; 359 ..text = '${item.length} Outgoing references';
360 } 360 }
361 } else { 361 } else {
362 element.children[0].text = ''; 362 element.children[0].text = '';
363 element.children[2].text = ''; 363 element.children[2].text = '';
364 element.children[3].text = ''; 364 element.children[3].text = '';
365 element.children[4] = new SpanElement()..classes = const ['name']; 365 element.children[4] = new SpanElement()..classes = const ['name'];
366 if (item is M.HeapSnapshotClassInbound){ 366 if (item is M.HeapSnapshotClassInbound){
(...skipping 41 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/function_view.html ('k') | runtime/observatory/lib/src/elements/helpers/any_ref.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698