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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineTreeView.js

Issue 1291983004: DevTools: Rename "Costly Entrypoints" -> "Call Tree" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 * @param {!WebInspector.TimelineModel} model 8 * @param {!WebInspector.TimelineModel} model
9 */ 9 */
10 WebInspector.TimelineTreeView = function(model) 10 WebInspector.TimelineTreeView = function(model)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 this._refreshTree(); 68 this._refreshTree();
69 }, 69 },
70 70
71 _createToolbar: function() 71 _createToolbar: function()
72 { 72 {
73 var panelToolbar = new WebInspector.Toolbar(this.element); 73 var panelToolbar = new WebInspector.Toolbar(this.element);
74 panelToolbar.appendToolbarItem(new WebInspector.ToolbarText(WebInspector .UIString("View"))); 74 panelToolbar.appendToolbarItem(new WebInspector.ToolbarText(WebInspector .UIString("View")));
75 75
76 this._modeCombobox = new WebInspector.ToolbarComboBox(this._onTreeModeCh anged.bind(this)); 76 this._modeCombobox = new WebInspector.ToolbarComboBox(this._onTreeModeCh anged.bind(this));
77 this._modeCombobox.addOption(this._modeCombobox.createOption(WebInspecto r.UIString("Costly Functions"), "", WebInspector.TimelineTreeView.Mode.BottomUp) ); 77 this._modeCombobox.addOption(this._modeCombobox.createOption(WebInspecto r.UIString("Costly Functions"), "", WebInspector.TimelineTreeView.Mode.BottomUp) );
78 this._modeCombobox.addOption(this._modeCombobox.createOption(WebInspecto r.UIString("Costly Entrypoints"), "", WebInspector.TimelineTreeView.Mode.TopDown )); 78 this._modeCombobox.addOption(this._modeCombobox.createOption(WebInspecto r.UIString("Call Tree"), "", WebInspector.TimelineTreeView.Mode.TopDown));
79 panelToolbar.appendToolbarItem(this._modeCombobox); 79 panelToolbar.appendToolbarItem(this._modeCombobox);
80 80
81 this._groupByCombobox = new WebInspector.ToolbarComboBox(this._onGroupBy Changed.bind(this)); 81 this._groupByCombobox = new WebInspector.ToolbarComboBox(this._onGroupBy Changed.bind(this));
82 /** 82 /**
83 * @param {string} name 83 * @param {string} name
84 * @param {string} id 84 * @param {string} id
85 * @this {WebInspector.TimelineTreeView} 85 * @this {WebInspector.TimelineTreeView}
86 */ 86 */
87 function addGroupingOption(name, id) 87 function addGroupingOption(name, id)
88 { 88 {
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 if (!this._profileNode.children) 413 if (!this._profileNode.children)
414 return; 414 return;
415 for (var node of this._profileNode.children.values()) { 415 for (var node of this._profileNode.children.values()) {
416 var gridNode = new WebInspector.TimelineTreeView.GridNode(node, this ._totalTime, this._maxTimes.self, this._maxTimes.total); 416 var gridNode = new WebInspector.TimelineTreeView.GridNode(node, this ._totalTime, this._maxTimes.self, this._maxTimes.total);
417 this.insertChildOrdered(gridNode); 417 this.insertChildOrdered(gridNode);
418 } 418 }
419 }, 419 },
420 420
421 __proto__: WebInspector.SortableDataGridNode.prototype 421 __proto__: WebInspector.SortableDataGridNode.prototype
422 } 422 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698