blob: 82f815e5211c6d2fd40a839f6d35c88c215781f9 [file]
<html>
<head>
<script src="resources/profiler-test-JS-resources.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (window.internals)
internals.settings.setJavaScriptProfilingEnabled(true);
function startTest()
{
console.profile("Two Execution Contexts");
intermediaryFunction();
}
function intermediaryFunction()
{
testEnd();
}
</script>
</head>
<body onload="startTest()">
This page has two script tags with some simple JavaScript.
<br>
<br>
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile there should be two (program) elements.
<div id="output"></div>
</body>
<script>
function testEnd() {
console.profileEnd();
printProfilesDataWithoutTime();
}
</script>
</html>