Web Inspector: speed up _calculateRetainedSizes function
[WebKit-https.git] / PerformanceTests / inspector / first-open-elements.html
1 <html>
2 <head>
3 <script src="../../LayoutTests/http/tests/inspector/inspector-test.js"></script>
4 <script src="performance-test.js"></script>
5 <script>
6
7 function test()
8 {
9     WebInspector.showPanel("audits");
10
11
12     function test(timer)
13     {
14         WebInspector.showPanel("audits");
15         WebInspector.domAgent._setDocument(null);
16
17         var showPanelTimerCookie = timer.start("first-open-elements");
18         InspectorTest.addBackendResponseSniffer(DOMAgent, "requestChildNodes", function() {
19             timer.finish(showPanelTimerCookie);
20             timer.done("first-open");
21         });
22         WebInspector.showPanel("elements");
23     }
24
25     InspectorTest.runPerformanceTest(test, 5000);
26 }
27
28 </script>
29 </head>
30
31 <body onload="runTest()">
32
33 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
34 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
35 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
36 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
37 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
38 <div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div>
39
40 </body>
41 </body>
42 </html>