| 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)
|
|
|