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

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

Issue 1126443002: Move user_story.user_story_set to story.story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update init file. Created 5 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 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 5 from telemetry import benchmark
6 6
7 from benchmarks import silk_flags 7 from benchmarks import silk_flags
8 from measurements import repaint as repaint_measurement 8 from measurements import repaint as repaint_measurement
9 import page_sets 9 import page_sets
10 10
11 11
12 class _Repaint(benchmark.Benchmark): 12 class _Repaint(benchmark.Benchmark):
13 @classmethod 13 @classmethod
14 def AddBenchmarkCommandLineArgs(cls, parser): 14 def AddBenchmarkCommandLineArgs(cls, parser):
15 parser.add_option('--mode', type='string', 15 parser.add_option('--mode', type='string',
16 default='viewport', 16 default='viewport',
17 help='Invalidation mode. ' 17 help='Invalidation mode. '
18 'Supported values: fixed_size, layer, random, viewport.') 18 'Supported values: fixed_size, layer, random, viewport.')
19 parser.add_option('--width', type='int', 19 parser.add_option('--width', type='int',
20 default=None, 20 default=None,
21 help='Width of invalidations for fixed_size mode.') 21 help='Width of invalidations for fixed_size mode.')
22 parser.add_option('--height', type='int', 22 parser.add_option('--height', type='int',
23 default=None, 23 default=None,
24 help='Height of invalidations for fixed_size mode.') 24 help='Height of invalidations for fixed_size mode.')
25 25
26 @classmethod 26 @classmethod
27 def Name(cls): 27 def Name(cls):
28 return 'repaint' 28 return 'repaint'
29 29
30 def CreateUserStorySet(self, options): 30 def CreateStorySet(self, options):
31 return page_sets.KeyMobileSitesRepaintPageSet( 31 return page_sets.KeyMobileSitesRepaintPageSet(
32 options.mode, options.width, options.height) 32 options.mode, options.width, options.height)
33 33
34 def CreatePageTest(self, options): 34 def CreatePageTest(self, options):
35 return repaint_measurement.Repaint() 35 return repaint_measurement.Repaint()
36 36
37 @benchmark.Enabled('android') 37 @benchmark.Enabled('android')
38 class RepaintKeyMobileSites(_Repaint): 38 class RepaintKeyMobileSites(_Repaint):
39 """Measures repaint performance on the key mobile sites. 39 """Measures repaint performance on the key mobile sites.
40 40
(...skipping 11 matching lines...) Expand all
52 52
53 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" 53 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
54 tag = 'gpu_rasterization' 54 tag = 'gpu_rasterization'
55 def CustomizeBrowserOptions(self, options): 55 def CustomizeBrowserOptions(self, options):
56 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options) 56 silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
57 57
58 @classmethod 58 @classmethod
59 def Name(cls): 59 def Name(cls):
60 return 'repaint.gpu_rasterization.key_mobile_sites_repaint' 60 return 'repaint.gpu_rasterization.key_mobile_sites_repaint'
61 61
OLDNEW
« no previous file with comments | « no previous file | tools/perf/benchmarks/session_restore.py » ('j') | tools/telemetry/telemetry/internal/story_runner_unittest.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698