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

Side by Side Diff: tools/perf/benchmarks/blink_perf.js

Issue 2844873002: Revert of Support tracing metrics for measureTime & measureFrameTime method in blink_perf (Closed)
Patch Set: Created 3 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 // 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 })();
OLDNEW
« no previous file with comments | « third_party/WebKit/PerformanceTests/resources/runner.js ('k') | tools/perf/benchmarks/blink_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698