OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <title>Profiler: test console controlling of CPU profiling</title> | |
4 <script type="text/javascript" src="resources/fib.js"></script> | |
5 <script type="text/javascript"> | |
6 function profile_fib() { | |
7 console.profile(); | |
8 run_fib(); | |
9 window.setTimeout('console.profileEnd();', 5000); | |
10 } | |
11 </script> | |
12 </head> | |
13 <body onload="profile_fib()"> | |
14 This test runs and profiles a simple looped computation. | |
15 <br> | |
16 <br> | |
17 TEST | |
18 <ul> | |
19 <li>load file in the browser; | |
20 <li>open DevTools with console (Ctrl+Shift+I on Win/Linux, Command+Option+
I on Mac); | |
21 <li>go to 'Profiles' page; | |
22 <li>observe that 'Profile 1' item has appeared under 'CPU profiles' sectio
n; | |
23 <li>check for presence of 'eternal_fib' entry in the profile view. | |
24 </ul> | |
25 <br> | |
26 </body> | |
27 </html> | |
OLD | NEW |