| OLD | NEW |
| 1 // There are tests for computeStatistics() located in LayoutTests/fast/harness/p
erftests | 1 // There are tests for computeStatistics() located in LayoutTests/fast/harness/p
erftests |
| 2 | 2 |
| 3 // We need access to console.memory for the memory measurements | 3 // Require non-quantized real-time JS heap size information. |
| 4 if (window.internals) | 4 if (window.internals) |
| 5 internals.settings.setMemoryInfoEnabled(true); | 5 internals.settings.setPreciseMemoryInfoEnabled(true); |
| 6 | 6 |
| 7 if (window.testRunner) { | 7 if (window.testRunner) { |
| 8 testRunner.waitUntilDone(); | 8 testRunner.waitUntilDone(); |
| 9 testRunner.dumpAsText(); | 9 testRunner.dumpAsText(); |
| 10 } | 10 } |
| 11 | 11 |
| 12 (function () { | 12 (function () { |
| 13 var logLines = null; | 13 var logLines = null; |
| 14 var completedIterations = -1; | 14 var completedIterations = -1; |
| 15 var callsPerIteration = 1; | 15 var callsPerIteration = 1; |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 | 333 |
| 334 iframe.contentDocument.close(); | 334 iframe.contentDocument.close(); |
| 335 document.body.removeChild(iframe); | 335 document.body.removeChild(iframe); |
| 336 }; | 336 }; |
| 337 | 337 |
| 338 PerfTestRunner.measureTime(test); | 338 PerfTestRunner.measureTime(test); |
| 339 } | 339 } |
| 340 | 340 |
| 341 window.PerfTestRunner = PerfTestRunner; | 341 window.PerfTestRunner = PerfTestRunner; |
| 342 })(); | 342 })(); |
| OLD | NEW |