| 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 pageFunction() { | 7 function pageFunction() { |
| 8 console.profile("manual"); | 8 console.profile("manual"); |
| 9 console.profileEnd("manual"); | 9 console.profileEnd("manual"); |
| 10 } | 10 } |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 var profilesPanel = WebInspector.panels.profiles; | 105 var profilesPanel = WebInspector.panels.profiles; |
| 106 var profileName = file.name.substr(0, file.name.length - ".cpuprofil
e".length); | 106 var profileName = file.name.substr(0, file.name.length - ".cpuprofil
e".length); |
| 107 InspectorTest.waitUntilProfileViewIsShown(profileName, checkLoadedCo
ntent); | 107 InspectorTest.waitUntilProfileViewIsShown(profileName, checkLoadedCo
ntent); |
| 108 profilesPanel._loadFromFile(file); | 108 profilesPanel._loadFromFile(file); |
| 109 var onTransferFinished = WebInspector.CPUProfileHeader.prototype.onT
ransferFinished; | 109 var onTransferFinished = WebInspector.CPUProfileHeader.prototype.onT
ransferFinished; |
| 110 WebInspector.CPUProfileHeader.prototype.onTransferFinished = functio
n() | 110 WebInspector.CPUProfileHeader.prototype.onTransferFinished = functio
n() |
| 111 { | 111 { |
| 112 loadedProfileData = this._jsonifiedProfile; | 112 loadedProfileData = this._jsonifiedProfile; |
| 113 onTransferFinished.call(this); | 113 onTransferFinished.call(this); |
| 114 WebInspector.panels.profiles._showProfile(this); | 114 WebInspector.panels.profiles.showProfile(this); |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 ]); | 118 ]); |
| 119 } | 119 } |
| 120 | 120 |
| 121 </script> | 121 </script> |
| 122 </head> | 122 </head> |
| 123 <body onload="runTest()"> | 123 <body onload="runTest()"> |
| 124 <p> | 124 <p> |
| 125 Tests that CPU profiling is able to save/load. | 125 Tests that CPU profiling is able to save/load. |
| 126 | 126 |
| 127 </p> | 127 </p> |
| 128 </body> | 128 </body> |
| 129 </html> | 129 </html> |
| OLD | NEW |