| 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:observatory/service.dart'; | 10 import 'package:observatory/service.dart'; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 listeners.add(infoButton.onClick.listen((event) { | 69 listeners.add(infoButton.onClick.listen((event) { |
| 70 event.stopPropagation(); | 70 event.stopPropagation(); |
| 71 toggleInfoBox(); | 71 toggleInfoBox(); |
| 72 })); | 72 })); |
| 73 } | 73 } |
| 74 | 74 |
| 75 static const attributes = const { | 75 static const attributes = const { |
| 76 'optimized' : const ['O', null, 'Optimized'], | 76 'optimized' : const ['O', null, 'Optimized'], |
| 77 'unoptimized' : const ['U', null, 'Unoptimized'], | 77 'unoptimized' : const ['U', null, 'Unoptimized'], |
| 78 'inlined' : const ['I', null, 'Inlined'], | 78 'inlined' : const ['I', null, 'Inlined'], |
| 79 'intrinsic' : const ['It', null, 'Intrinsic'], |
| 80 'ffi' : const ['F', null, 'FFI'], |
| 79 'dart' : const ['D', null, 'Dart'], | 81 'dart' : const ['D', null, 'Dart'], |
| 80 'tag' : const ['T', null, 'Tag'], | 82 'tag' : const ['T', null, 'Tag'], |
| 81 'native' : const ['N', null, 'Native'], | 83 'native' : const ['N', null, 'Native'], |
| 82 'stub': const ['S', null, 'Stub'], | 84 'stub': const ['S', null, 'Stub'], |
| 83 'synthetic' : const ['?', null, 'Synthetic'], | 85 'synthetic' : const ['?', null, 'Synthetic'], |
| 84 }; | 86 }; |
| 85 | 87 |
| 86 HtmlElement newAttributeBox(String attribute) { | 88 HtmlElement newAttributeBox(String attribute) { |
| 87 List attributeDetails = attributes[attribute]; | 89 List attributeDetails = attributes[attribute]; |
| 88 if (attributeDetails == null) { | 90 if (attributeDetails == null) { |
| (...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 return; | 1211 return; |
| 1210 } | 1212 } |
| 1211 var tree = profile.loadCodeTree(exclusive ? 'exclusive' : 'inclusive'); | 1213 var tree = profile.loadCodeTree(exclusive ? 'exclusive' : 'inclusive'); |
| 1212 if (tree == null) { | 1214 if (tree == null) { |
| 1213 return; | 1215 return; |
| 1214 } | 1216 } |
| 1215 var rootRow = new CodeProfileTreeRow(codeTree, null, profile, tree.root); | 1217 var rootRow = new CodeProfileTreeRow(codeTree, null, profile, tree.root); |
| 1216 codeTree.initialize(rootRow); | 1218 codeTree.initialize(rootRow); |
| 1217 } | 1219 } |
| 1218 } | 1220 } |
| OLD | NEW |