OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 (function() { | 5 (function() { |
6 window.testRunner = {}; | 6 window.testRunner = {}; |
7 window.testRunner.isDone = false; | 7 window.testRunner.isDone = false; |
8 | 8 |
9 testRunner.waitUntilDone = function() {}; | 9 testRunner.waitUntilDone = function() {}; |
10 testRunner.dumpAsText = function() {}; | 10 testRunner.dumpAsText = function() {}; |
11 testRunner.notifyDone = function() { | 11 testRunner.notifyDone = function() { |
12 this.isDone = true; | 12 this.isDone = true; |
13 }; | 13 }; |
14 | 14 |
15 testRunner.supportTracing = true; | |
16 | |
17 // If this is true, blink_perf tests is put on paused waiting for tracing to | |
18 // be started. |scheduleTestRun| should be invoked after tracing is started | |
19 // to continue blink perf test. | |
20 testRunner.isWaitingForTracingStart = false; | |
21 | |
22 testRunner.startTracing = function(tracingCategories, scheduleTestRun) { | |
23 this.tracingCategories = tracingCategories; | |
24 this.scheduleTestRun = scheduleTestRun; | |
25 this.isWaitingForTracingStart = true; | |
26 } | |
27 | |
28 testRunner.stopTracingAndMeasure = function(traceEventsToMeasure, callback) { | |
29 testRunner.traceEventsToMeasure = traceEventsToMeasure; | |
30 callback(); | |
31 } | |
32 | |
33 window.GCController = {}; | 15 window.GCController = {}; |
34 | 16 |
35 GCController.collect = function() { | 17 GCController.collect = function() { |
36 gc(); | 18 gc(); |
37 }; | 19 }; |
38 GCController.collectAll = function() { | 20 GCController.collectAll = function() { |
39 for (var i = 0; i < 7; ++i) | 21 for (var i = 0; i < 7; ++i) |
40 gc(); | 22 gc(); |
41 }; | 23 }; |
42 })(); | 24 })(); |
OLD | NEW |