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

Unified Diff: tools/perf/benchmarks/blink_perf.js

Issue 2819343002: Support tracing metrics for measureTime & measureFrameTime method in blink_perf (Closed)
Patch Set: Disable testBlinkPerfTracingMetricsForMeasureTime on Android Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/blink_perf.js
diff --git a/tools/perf/benchmarks/blink_perf.js b/tools/perf/benchmarks/blink_perf.js
index 465e1ffd7409837bc95bf5c05a6b1e3f49718e84..bb764cf4f7715547391d08fb3c30594e1db5d755 100644
--- a/tools/perf/benchmarks/blink_perf.js
+++ b/tools/perf/benchmarks/blink_perf.js
@@ -12,6 +12,24 @@ testRunner.notifyDone = function() {
this.isDone = true;
};
+testRunner.supportTracing = true;
+
+// If this is true, blink_perf tests is put on paused waiting for tracing to
+// be started. |scheduleTestRun| should be invoked after tracing is started
+// to continue blink perf test.
+testRunner.isWaitingForTracingStart = false;
+
+testRunner.startTracing = function(tracingCategories, scheduleTestRun) {
+ this.tracingCategories = tracingCategories;
+ this.scheduleTestRun = scheduleTestRun;
+ this.isWaitingForTracingStart = true;
+}
+
+testRunner.stopTracingAndMeasure = function(traceEventsToMeasure, callback) {
+ testRunner.traceEventsToMeasure = traceEventsToMeasure;
+ callback();
+}
+
window.GCController = {};
GCController.collect = function() {
« 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