Chromium Code Reviews| 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; |