Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="profiler-test.js"></script> | 4 <script src="profiler-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 var profileAndExpectations = { | 9 var profileAndExpectations = { |
| 10 _profile: { | 10 _profile: { |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 801 "deoptReason": "", | 801 "deoptReason": "", |
| 802 "id": 1 | 802 "id": 1 |
| 803 }, | 803 }, |
| 804 "startTime": 1384977392.3568, | 804 "startTime": 1384977392.3568, |
| 805 "endTime": 1384977392.5345, | 805 "endTime": 1384977392.5345, |
| 806 "samples": [2,16,21,26,35,36,37,2,2,2,2,2,2,37,37,37,37,37,37,37,37, 37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37 ,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,48,52,52,61,2,37,37,37,37,37 ,37,37] | 806 "samples": [2,16,21,26,35,36,37,2,2,2,2,2,2,37,37,37,37,37,37,37,37, 37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37 ,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,48,52,52,61,2,37,37,37,37,37 ,37,37] |
| 807 } | 807 } |
| 808 }; | 808 }; |
| 809 WebInspector.inspectorView.showPanel("profiles"); | 809 WebInspector.inspectorView.showPanel("profiles"); |
| 810 var cpuProfileView = new WebInspector.CPUProfileView(profileAndExpectations) ; | 810 var cpuProfileView = new WebInspector.CPUProfileView(profileAndExpectations) ; |
| 811 var dataProvider = new WebInspector.CPUFlameChartDataProvider(cpuProfileView ); | 811 var dataProvider = new WebInspector.CPUFlameChartDataProvider(cpuProfileView .profile); |
| 812 var colorGenerator = new WebInspector.CPUProfileFlameChart.ColorGenerator(); | 812 var colorGenerator = new WebInspector.CPUProfileFlameChart.ColorGenerator(); |
| 813 var timelineData = dataProvider.timelineData(colorGenerator); | 813 var timelineData = dataProvider.timelineData(colorGenerator); |
| 814 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 16))); | 814 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 16))); |
| 815 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 8))); | 815 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 8))); |
| 816 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 4))); | 816 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 4))); |
| 817 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 2))); | 817 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 2))); |
| 818 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 1))); | 818 console.log(Object.values(WebInspector.CPUProfileFlameChart.OverviewPane.cal culateDrawData(dataProvider, timelineData, 1))); |
| 819 InspectorTest.completeTest(); | 819 InspectorTest.completeTest(); |
| 820 } | 820 } |
| 821 | 821 |
| 822 </script> | 822 </script> |
| 823 </head> | 823 </head> |
| 824 <body onload="runTest()"> | 824 <body onload="runTest()"> |
| 825 <p> | 825 <p> |
| 826 Tests Overview pane calculation in FlameChart for different width = 2^n with n i n range 4 - 0. | 826 Tests Overview pane calculation in FlameChart for different width = 2^n with n i n range 4 - 0. |
| 827 | 827 |
| 828 </p> | 828 </p> |
| 829 </body> | 829 </body> |
| 830 </html> | 830 </html> |
| OLD | NEW |