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

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

Issue 1072423003: When attempting to navigate to a page for an isolate that doesn't exist, offer to (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:observatory/service.dart'; 10 import 'package:observatory/service.dart';
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 tableBody.children[focusedRow].classes.add('focused'); 962 tableBody.children[focusedRow].classes.add('focused');
963 _updateFunctionTreeView(); 963 _updateFunctionTreeView();
964 _buildCallersTable(focusedFunction); 964 _buildCallersTable(focusedFunction);
965 _buildCalleesTable(focusedFunction); 965 _buildCalleesTable(focusedFunction);
966 } 966 }
967 967
968 _onRowClick(TableRowElement tr) { 968 _onRowClick(TableRowElement tr) {
969 var tableBody = $['profile-table']; 969 var tableBody = $['profile-table'];
970 var row = profileTable.rowFromIndex(tableBody.children.indexOf(tr)); 970 var row = profileTable.rowFromIndex(tableBody.children.indexOf(tr));
971 var function = row.values[NameSortedTable.FUNCTION_COLUMN]; 971 var function = row.values[NameSortedTable.FUNCTION_COLUMN];
972 app.locationManager.goParameter( 972 app.locationManager.goReplacingParameters(
973 { 973 {
974 'functionId': function.id 974 'functionId': function.id
975 } 975 }
976 ); 976 );
977 } 977 }
978 978
979 _renderTable() { 979 _renderTable() {
980 profileTable._updateTableView($['profile-table'], 980 profileTable._updateTableView($['profile-table'],
981 profileTable._makeFunctionRow, 981 profileTable._makeFunctionRow,
982 _onRowClick, 982 _onRowClick,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 } 1117 }
1118 var filter = (FunctionCallTreeNode node) { 1118 var filter = (FunctionCallTreeNode node) {
1119 return node.profileFunction.function == focusedFunction; 1119 return node.profileFunction.function == focusedFunction;
1120 }; 1120 };
1121 tree = tree.filtered(filter); 1121 tree = tree.filtered(filter);
1122 var rootRow = 1122 var rootRow =
1123 new FunctionProfileTreeRow(functionTree, null, profile, tree.root); 1123 new FunctionProfileTreeRow(functionTree, null, profile, tree.root);
1124 functionTree.initialize(rootRow); 1124 functionTree.initialize(rootRow);
1125 } 1125 }
1126 } 1126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698