Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1153)

Side by Side Diff: PerformanceTests/resources/runner.js

Issue 106353005: Expose performance.memory in workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@Perf-Memory-SharedWorker
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // Require non-quantized real-time JS heap size information.
4 if (window.internals)
5 internals.settings.setPreciseMemoryInfoEnabled(true);
6
7 if (window.testRunner) { 3 if (window.testRunner) {
8 testRunner.waitUntilDone(); 4 testRunner.waitUntilDone();
9 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
10 } 6 }
11 7
12 (function () { 8 (function () {
13 var logLines = null; 9 var logLines = null;
14 var completedIterations = -1; 10 var completedIterations = -1;
15 var callsPerIteration = 1; 11 var callsPerIteration = 1;
16 var currentTest = null; 12 var currentTest = null;
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 329
334 iframe.contentDocument.close(); 330 iframe.contentDocument.close();
335 document.body.removeChild(iframe); 331 document.body.removeChild(iframe);
336 }; 332 };
337 333
338 PerfTestRunner.measureTime(test); 334 PerfTestRunner.measureTime(test);
339 } 335 }
340 336
341 window.PerfTestRunner = PerfTestRunner; 337 window.PerfTestRunner = PerfTestRunner;
342 })(); 338 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698