| Index: third_party/WebKit/PerformanceTests/Bindings/resources/structured-clone-perf-test.js
|
| diff --git a/third_party/WebKit/PerformanceTests/Bindings/resources/structured-clone-perf-test.js b/third_party/WebKit/PerformanceTests/Bindings/resources/structured-clone-perf-test.js
|
| index 1db00f98a6c5017a099574fac088b64aa507c016..f44f460e8367c89c9fe1fe16857b234fb085b7ef 100644
|
| --- a/third_party/WebKit/PerformanceTests/Bindings/resources/structured-clone-perf-test.js
|
| +++ b/third_party/WebKit/PerformanceTests/Bindings/resources/structured-clone-perf-test.js
|
| @@ -22,12 +22,13 @@ const StructuredClonePerfTestRunner = (function() {
|
| return {
|
| measureTimeAsync(test) {
|
| let isDone = false;
|
| - PerfTestRunner.prepareToMeasureValuesAsync({
|
| + PerfTestRunner.startMeasureValuesAsync({
|
| description: test.description,
|
| unit: 'ms',
|
| warmUpCount: test.warmUpCount || 10,
|
| iterationCount: test.iterationCount || 250,
|
| done() { isDone = true; },
|
| + run: pingPongUntilDone,
|
| });
|
|
|
| function pingPongUntilDone() {
|
| @@ -40,7 +41,6 @@ const StructuredClonePerfTestRunner = (function() {
|
| if (!isDone) pingPongUntilDone();
|
| });
|
| }
|
| - pingPongUntilDone();
|
| },
|
| };
|
| })();
|
|
|