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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js

Issue 2150803002: [DevTools] Add callFrame to CPUProfileNode & SamplingHeapProfileNode (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/sdk/CPUProfileDataModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js
index 81d89040f4f657acb21fb9a0b42c746a0a3a58c7..e307930dfd93285ae26e335ca1710d40c5d94100 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/CPUProfileDataModel.js
@@ -10,7 +10,7 @@
*/
WebInspector.CPUProfileNode = function(sourceNode, sampleTime)
{
- WebInspector.ProfileNode.call(this, sourceNode.functionName, sourceNode.scriptId, sourceNode.url, sourceNode.lineNumber, sourceNode.columnNumber);
+ WebInspector.ProfileNode.call(this, sourceNode.callFrame);
alph 2016/07/14 17:56:00 ditto
kozy 2016/07/14 21:35:04 Done.
this.id = sourceNode.id;
this.self = sourceNode.hitCount * sampleTime;
this.callUID = sourceNode.callUID;
@@ -66,7 +66,7 @@ WebInspector.CPUProfileDataModel.prototype = {
*/
function isNativeNode(node)
{
- return !!node.url && node.url.startsWith("native ");
+ return !!node.callFrame.url && node.callFrame.url.startsWith("native ");
}
this.totalHitCount = computeHitCountForSubtree(root);
var sampleTime = (this.profileEndTime - this.profileStartTime) / this.totalHitCount;

Powered by Google App Engine
This is Rietveld 408576698