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

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

Issue 1076003004: Fix all Observatory warnings/errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library cpu_profile_element; 5 library cpu_profile_element;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'observatory_element.dart'; 9 import 'observatory_element.dart';
10 import 'package:logging/logging.dart';
11 import 'package:observatory/service.dart'; 10 import 'package:observatory/service.dart';
12 import 'package:observatory/app.dart'; 11 import 'package:observatory/app.dart';
13 import 'package:observatory/cpu_profile.dart'; 12 import 'package:observatory/cpu_profile.dart';
14 import 'package:observatory/elements.dart'; 13 import 'package:observatory/elements.dart';
15 import 'package:polymer/polymer.dart'; 14 import 'package:polymer/polymer.dart';
16 15
17 List<String> sorted(Set<String> attributes) { 16 List<String> sorted(Set<String> attributes) {
18 var list = attributes.toList(); 17 var list = attributes.toList();
19 list.sort(); 18 list.sort();
20 return list; 19 return list;
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 codeTree = new TableTree(tableBody, 2); 603 codeTree = new TableTree(tableBody, 2);
605 } 604 }
606 var tree = profile.loadCodeTree(exclusive ? 'exclusive' : 'inclusive'); 605 var tree = profile.loadCodeTree(exclusive ? 'exclusive' : 'inclusive');
607 if (tree == null) { 606 if (tree == null) {
608 return; 607 return;
609 } 608 }
610 var rootRow = new CodeProfileTreeRow(codeTree, null, profile, tree.root); 609 var rootRow = new CodeProfileTreeRow(codeTree, null, profile, tree.root);
611 codeTree.initialize(rootRow); 610 codeTree.initialize(rootRow);
612 } 611 }
613 } 612 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/debugger/source_location.dart ('k') | runtime/observatory/lib/src/elements/debugger.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698