| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |