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

Unified Diff: tools/perf/benchmarks/skpicture_printer.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/benchmarks/skpicture_printer.py
diff --git a/tools/perf/benchmarks/skpicture_printer.py b/tools/perf/benchmarks/skpicture_printer.py
deleted file mode 100644
index 09a844dd47448d142b4aa07643eb62ccd5bddbe4..0000000000000000000000000000000000000000
--- a/tools/perf/benchmarks/skpicture_printer.py
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 2014 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 core import perf_benchmark
-
-import ct_benchmarks_util
-import page_sets
-from page_sets import repaint_helpers
-from telemetry import benchmark
-from telemetry.core import discover
-from telemetry import story
-
-from measurements import skpicture_printer
-
-
-def _MatchPageSetName(story_set_name, story_set_base_dir):
- story_sets = discover.DiscoverClasses(story_set_base_dir, story_set_base_dir,
- story.StorySet).values()
- for s in story_sets:
- if story_set_name == s.Name():
- return s
- return None
-
-
-# Disabled because we do not plan on running this SKP benchmark on the perf
-# waterfall any time soon.
-@benchmark.Disabled('all')
-@benchmark.Owner(emails=['rmistry@chromium.org'])
-class SkpicturePrinter(perf_benchmark.PerfBenchmark):
-
- @classmethod
- def AddBenchmarkCommandLineArgs(cls, parser):
- parser.add_option('--page-set-name', action='store', type='string')
- parser.add_option('--page-set-base-dir', action='store', type='string')
- parser.add_option('-s', '--skp-outdir',
- help='Output directory for the SKP files')
-
- @classmethod
- def ProcessCommandLineArgs(cls, parser, args):
- if not args.page_set_name:
- parser.error('Please specify --page-set-name')
- if not args.page_set_base_dir:
- parser.error('Please specify --page-set-base-dir')
- if not args.skp_outdir:
- parser.error('Please specify --skp-outdir')
-
- @classmethod
- def Name(cls):
- return 'skpicture_printer'
-
- def CreatePageTest(self, options):
- return skpicture_printer.SkpicturePrinter(options.skp_outdir)
-
- def CreateStorySet(self, options):
- story_set_class = _MatchPageSetName(options.page_set_name,
- options.page_set_base_dir)
- return story_set_class()
-
-
-# Disabled because we do not plan on running CT benchmarks on the perf
-# waterfall any time soon.
-@benchmark.Disabled('all')
-class SkpicturePrinterCT(perf_benchmark.PerfBenchmark):
- """Captures SKPs for Cluster Telemetry."""
-
- @classmethod
- def Name(cls):
- return 'skpicture_printer_ct'
-
- @classmethod
- def AddBenchmarkCommandLineArgs(cls, parser):
- ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
- parser.add_option('-s', '--skp-outdir',
- default=None,
- help='Output directory for the SKP files')
-
- @classmethod
- def ProcessCommandLineArgs(cls, parser, args):
- ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
-
- def CreatePageTest(self, options):
- return skpicture_printer.SkpicturePrinter(options.skp_outdir)
-
- def CreateStorySet(self, options):
- return page_sets.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