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

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

Issue 1439893002: - Annotate instructions that load objects from the ObjectPool or Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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) 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
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
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 }
OLDNEW
« no previous file with comments | « runtime/observatory/lib/src/elements/code_view.html ('k') | runtime/observatory/lib/src/elements/function_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698