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

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

Issue 1666563005: DevTools: merge ScriptCallStack and ScriptAsyncCallStack, move CallStacks from console to Runtime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: testts Created 4 years, 10 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
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 * @param {!Element} parent 100 * @param {!Element} parent
101 */ 101 */
102 _populateToolbar: function(parent) { }, 102 _populateToolbar: function(parent) { },
103 103
104 /** 104 /**
105 * @param {?WebInspector.TimelineTreeView.ProfileTreeNode} node 105 * @param {?WebInspector.TimelineTreeView.ProfileTreeNode} node
106 */ 106 */
107 _onHover: function(node) { }, 107 _onHover: function(node) { },
108 108
109 /** 109 /**
110 * @param {!ConsoleAgent.CallFrame} frame 110 * @param {!RuntimeAgent.CallFrame} frame
111 * @return {!Element} 111 * @return {!Element}
112 */ 112 */
113 linkifyLocation: function(frame) 113 linkifyLocation: function(frame)
114 { 114 {
115 return this._linkifier.linkifyConsoleCallFrame(this._model.target(), fra me); 115 return this._linkifier.linkifyConsoleCallFrame(this._model.target(), fra me);
116 }, 116 },
117 117
118 /** 118 /**
119 * @param {!WebInspector.TimelineTreeView.ProfileTreeNode} treeNode 119 * @param {!WebInspector.TimelineTreeView.ProfileTreeNode} treeNode
120 * @param {boolean} suppressSelectedEvent 120 * @param {boolean} suppressSelectedEvent
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 if (event) { 454 if (event) {
455 var data = event.args["data"]; 455 var data = event.args["data"];
456 var deoptReason = data && data["deoptReason"]; 456 var deoptReason = data && data["deoptReason"];
457 if (deoptReason && deoptReason !== "no reason") 457 if (deoptReason && deoptReason !== "no reason")
458 container.createChild("div", "activity-warning").title = WebInsp ector.UIString("Not optimized: %s", deoptReason); 458 container.createChild("div", "activity-warning").title = WebInsp ector.UIString("Not optimized: %s", deoptReason);
459 name.textContent = event.name === WebInspector.TimelineModel.RecordT ype.JSFrame 459 name.textContent = event.name === WebInspector.TimelineModel.RecordT ype.JSFrame
460 ? WebInspector.beautifyFunctionName(event.args["data"]["function Name"]) 460 ? WebInspector.beautifyFunctionName(event.args["data"]["function Name"])
461 : WebInspector.TimelineUIUtils.eventTitle(event); 461 : WebInspector.TimelineUIUtils.eventTitle(event);
462 var frame = WebInspector.TimelineTreeView.eventStackFrame(event); 462 var frame = WebInspector.TimelineTreeView.eventStackFrame(event);
463 if (frame && frame["url"]) { 463 if (frame && frame["url"]) {
464 var callFrame = /** @type {!ConsoleAgent.CallFrame} */ (frame); 464 var callFrame = /** @type {!RuntimeAgent.CallFrame} */ (frame);
465 container.createChild("div", "activity-link").appendChild(this._ treeView.linkifyLocation(callFrame)); 465 container.createChild("div", "activity-link").appendChild(this._ treeView.linkifyLocation(callFrame));
466 } 466 }
467 icon.style.backgroundColor = WebInspector.TimelineUIUtils.eventColor (event); 467 icon.style.backgroundColor = WebInspector.TimelineUIUtils.eventColor (event);
468 } else { 468 } else {
469 name.textContent = this._profileNode.name; 469 name.textContent = this._profileNode.name;
470 icon.style.backgroundColor = this._profileNode.color; 470 icon.style.backgroundColor = this._profileNode.color;
471 } 471 }
472 return cell; 472 return cell;
473 }, 473 },
474 474
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 return selectedNode && /** @type {!WebInspector.TimelineTreeView.GridNod e} */ (selectedNode)._profileNode; 1159 return selectedNode && /** @type {!WebInspector.TimelineTreeView.GridNod e} */ (selectedNode)._profileNode;
1160 }, 1160 },
1161 1161
1162 _onSelectionChanged: function() 1162 _onSelectionChanged: function()
1163 { 1163 {
1164 this.dispatchEventToListeners(WebInspector.TimelineStackView.Events.Sele ctionChanged); 1164 this.dispatchEventToListeners(WebInspector.TimelineStackView.Events.Sele ctionChanged);
1165 }, 1165 },
1166 1166
1167 __proto__: WebInspector.VBox.prototype 1167 __proto__: WebInspector.VBox.prototype
1168 } 1168 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698