blob: 0a4f68ae5ecffea09726f50339927d180707ce9a [file] [log] [blame]
<html>
<head>
<script src="resources/profiler-test-JS-resources.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (window.internals)
internals.setJavaScriptProfilingEnabled(true);
function startTest()
{
console.profile("Start the profiler the first time.");
anonymousFunction();
endTest();
console.profile("Start the profiler the second time.");
anonymousFunction();
endTest();
console.profile("Start the profiler the third time.");
anonymousFunction();
endTest();
}
</script>
</head>
<body onload="startTest()">
This page's JavaScript calls console.profile() and console.profileEnd() three times.
<br>
<br>
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profiler there should be three profiles.
<div id="output"></div>
</body>
</html>