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

Unified Diff: tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py

Issue 2876073003: Migrate cluster telemetry benchmarks to tools/perf/contrib/cluster_telemetry/ (Closed)
Patch Set: Remove BENCHMARKS_BLACK_LIST 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: tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py
diff --git a/tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py b/tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py
new file mode 100644
index 0000000000000000000000000000000000000000..706338e7331b1562584249f362b42d600f79a095
--- /dev/null
+++ b/tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py
@@ -0,0 +1,34 @@
+# Copyright 2013 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.
+
+from contrib.cluster_telemetry import ct_benchmarks_util
+from contrib.cluster_telemetry import page_set
+from contrib.cluster_telemetry import repaint_helpers
+
+from benchmarks import rasterize_and_record_micro
+
+
+# pylint: disable=protected-access
+class RasterizeAndRecordMicroCT(
+ rasterize_and_record_micro._RasterizeAndRecordMicro):
+ """Measures rasterize and record performance for Cluster Telemetry."""
+
+ @classmethod
+ def Name(cls):
+ return 'rasterize_and_record_micro_ct'
+
+ @classmethod
+ def AddBenchmarkCommandLineArgs(cls, parser):
+ (rasterize_and_record_micro._RasterizeAndRecordMicro.
+ AddBenchmarkCommandLineArgs(parser))
+ ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
+
+ @classmethod
+ def ProcessCommandLineArgs(cls, parser, args):
+ ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
+
+ def CreateStorySet(self, options):
+ return page_set.CTPageSet(
+ options.urls_list, options.user_agent, options.archive_data_file,
+ run_page_interaction_callback=repaint_helpers.WaitThenRepaint)

Powered by Google App Engine
This is Rietveld 408576698