| 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 if (window.internals) | |
| 8 internals.setJavaScriptProfilingEnabled(true); | |
| 9 | |
| 10 function startTest() | |
| 11 { | |
| 12 console.profile("Many Calls In The Same Scope"); | |
| 13 | |
| 14 insertNewText(); | |
| 15 insertGivenText("This was a triumph."); | |
| 16 arrayOperatorFunction(7); | |
| 17 intermediaryFunction(); | |
| 18 anonymousFunction(); | |
| 19 end() | |
| 20 endT(); | |
| 21 endT(); | |
| 22 | |
| 23 endTest(); | |
| 24 } | |
| 25 | |
| 26 function end() | |
| 27 { | |
| 28 var x = 0; | |
| 29 } | |
| 30 | |
| 31 function endT() | |
| 32 { | |
| 33 var y = 1; | |
| 34 } | |
| 35 | |
| 36 </script> | |
| 37 </head> | |
| 38 | |
| 39 <body onload="startTest()"> | |
| 40 This page's JavaScript has many function calls in the same scope. | |
| 41 <br> | |
| 42 <br> | |
| 43 To run this test manually, load it in the browser then load the WebInspector and
look at | |
| 44 the profile. In the profile many functions should be the children of startTest. | |
| 45 Use the sorting capabilites to make sure the similarly named functions are sorte
d | |
| 46 correctly. | |
| 47 <div id="output"></div> | |
| 48 </body> | |
| 49 </html> | |
| OLD | NEW |