| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="resources/profiler-test-JS-resources.js"></script> | |
| 4 <script> | |
| 5 if (window.testRunner) { | |
| 6 testRunner.dumpAsText(); | |
| 7 testRunner.waitUntilDone(); | |
| 8 } | |
| 9 if (window.internals) | |
| 10 internals.setJavaScriptProfilingEnabled(true); | |
| 11 | |
| 12 function startTest() | |
| 13 { | |
| 14 console.profile("Dead time in profile."); | |
| 15 setTimeout("endTest()", 1234); | |
| 16 } | |
| 17 | |
| 18 </script> | |
| 19 </head> | |
| 20 | |
| 21 <body onload="startTest()"> | |
| 22 This page's JavaScript Has some dead time in the profile. | |
| 23 <br> | |
| 24 <br> | |
| 25 To run this test manually, load it in the browser then load the WebInspector and
look at | |
| 26 the profile. In the profile there should be a large amount of the % spent in | |
| 27 (non-JavaScript). | |
| 28 <div id="output"></div> | |
| 29 </body> | |
| 30 </html> | |
| 31 | |
| OLD | NEW |