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

Side by Side Diff: tools/perf/benchmarks/repaint.py

Issue 1029263003: [telemetry] Sort imports in Telemetry and its dependents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure we're up to date. Created 5 years, 9 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from telemetry import benchmark
6
5 from benchmarks import silk_flags 7 from benchmarks import silk_flags
6 from measurements import repaint as repaint_measurement 8 from measurements import repaint as repaint_measurement
7 import page_sets 9 import page_sets
8 from telemetry import benchmark
9 10
10 11
11 class _Repaint(benchmark.Benchmark): 12 class _Repaint(benchmark.Benchmark):
12 @classmethod 13 @classmethod
13 def AddBenchmarkCommandLineArgs(cls, parser): 14 def AddBenchmarkCommandLineArgs(cls, parser):
14 parser.add_option('--mode', type='string', 15 parser.add_option('--mode', type='string',
15 default='viewport', 16 default='viewport',
16 help='Invalidation mode. ' 17 help='Invalidation mode. '
17 'Supported values: fixed_size, layer, random, viewport.') 18 'Supported values: fixed_size, layer, random, viewport.')
18 parser.add_option('--width', type='int', 19 parser.add_option('--width', type='int',
(...skipping 30 matching lines...) Expand all
49 50
50 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 51 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
51 tag = 'gpu_rasterization' 52 tag = 'gpu_rasterization'
52 page_set = page_sets.KeyMobileSitesRepaintPageSet 53 page_set = page_sets.KeyMobileSitesRepaintPageSet
53 def CustomizeBrowserOptions(self, options): 54 def CustomizeBrowserOptions(self, options):
54 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) 55 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
55 @classmethod 56 @classmethod
56 def Name(cls): 57 def Name(cls):
57 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' 58 return 'repaint.gpu_rasterization.key_mobile_sites_repaint'
58 59
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/rasterize_and_record_micro.py ('k') | tools/perf/benchmarks/robohornet_pro.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698