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

Unified Diff: third_party/WebKit/PerformanceTests/Paint/resources/paint.js

Issue 2883603002: Use the new tracing based measurement for blink_perf.paint (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/PerformanceTests/Paint/resources/paint.js
diff --git a/third_party/WebKit/PerformanceTests/Paint/resources/paint.js b/third_party/WebKit/PerformanceTests/Paint/resources/paint.js
new file mode 100644
index 0000000000000000000000000000000000000000..2253b5a92cbc55f73f1527d24b6ebe6f6b68283d
--- /dev/null
+++ b/third_party/WebKit/PerformanceTests/Paint/resources/paint.js
@@ -0,0 +1,9 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+function measurePaint(test) {
+ test.tracingCategories = 'blink';
+ test.traceEventsToMeasure = ['FrameView::prePaint', 'FrameView::paintTree'];
+ PerfTestRunner.measureFrameTime(test);
+}

Powered by Google App Engine
This is Rietveld 408576698