<script>
function pageFunction() {
- console.profile("outer");
- console.profile("inner"); // [Chromium] Make sure we capture the current callstack.
- console.profileEnd("outer");
- console.profileEnd("inner");
+ console.profile("profile");
+ console.profileEnd("profile");
}
function test()
{
var tree = view.profileDataGridTree;
if (!tree)
- InspectorTest.addResult("no tree");
+ InspectorTest.addResult("no tree");
var node = tree.children[0];
if (!node)
- InspectorTest.addResult("no node");
+ InspectorTest.addResult("no node");
while (node) {
if (node.functionName.indexOf("pageFunction") !== -1) {
InspectorTest.addResult("found pageFunction");
}
next();
}
- InspectorTest.showProfileWhenAdded("inner");
- InspectorTest.waitUntilProfileViewIsShown("inner", findPageFunctionInProfileView);
+ InspectorTest.showProfileWhenAdded("profile");
+ InspectorTest.waitUntilProfileViewIsShown("profile", findPageFunctionInProfileView);
InspectorTest.evaluateInConsole("pageFunction()", function done() {});
}
]);