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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js

Issue 2145483002: [DevTools] make Runtime.CallFrame 0-based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
index 4fd2517be0905fb301d319ad099009580cdbbb85..8f42a3be2237c3e773331712168019f706684332 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -349,8 +349,7 @@ WebInspector.CPUProfileView.NodeFormatter.prototype = {
*/
linkifyNode: function(node)
{
- var callFrame = node.profileNode.frame;
- return this._profileView.linkifier().linkifyConsoleCallFrame(this._profileView.target(), callFrame, "profile-node-file");
+ return this._profileView.linkifier().linkifyConsoleCallFrameForTimeline(this._profileView.target(), node.profileNode.frame, "profile-node-file");
}
}
@@ -478,9 +477,8 @@ WebInspector.CPUFlameChartDataProvider.prototype = {
var totalTime = millisecondsToString(timelineData.entryTotalTimes[entryIndex]);
pushEntryInfoRow(WebInspector.UIString("Self time"), selfTime);
pushEntryInfoRow(WebInspector.UIString("Total time"), totalTime);
- var callFrame = /** @type {!RuntimeAgent.CallFrame} */ (node);
var linkifier = new WebInspector.Linkifier();
- var text = linkifier.linkifyConsoleCallFrame(this._target, callFrame).textContent;
+ var text = linkifier.linkifyConsoleCallFrameForTimeline(this._target, node).textContent;
linkifier.dispose();
pushEntryInfoRow(WebInspector.UIString("URL"), text);
pushEntryInfoRow(WebInspector.UIString("Aggregated self time"), Number.secondsToString(node.selfTime / 1000, true));

Powered by Google App Engine
This is Rietveld 408576698