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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/sampling-heap-profiler.html

Issue 2150803002: [DevTools] Add callFrame to CPUProfileNode & SamplingHeapProfileNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments 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/LayoutTests/inspector-protocol/heap-profiler/sampling-heap-profiler.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/sampling-heap-profiler.html b/third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/sampling-heap-profiler.html
index 5ebc58f19652af03a03c9cab6b28166ddc836487..1b5bf0cfb0aa9acb57cb8ae56d703c3f316b311c 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/sampling-heap-profiler.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/heap-profiler/sampling-heap-profiler.html
@@ -58,7 +58,7 @@ function test()
function findNode(root, name, depth)
{
- if (depth < 1 && root.functionName === name)
+ if (depth < 1 && root.callFrame.functionName === name)
return root;
return root.children.reduce((found, child) => found || findNode(child, name, depth - 1), null);
}
@@ -66,7 +66,7 @@ function test()
function logNode(node)
{
var size = typeof node.selfSize === "number" ? node.selfSize ? ">0" : "=0" : "-";
- InspectorTest.log(`size${size} ${node.functionName}:${node.lineNumber}:${node.columnNumber}`);
+ InspectorTest.log(`size${size} ${node.callFrame.functionName}:${node.callFrame.lineNumber}:${node.callFrame.columnNumber}`);
}
//# sourceURL=sampling-heap-profiler.html

Powered by Google App Engine
This is Rietveld 408576698