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

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

Issue 2927843002: Verify story name is set for tab switching benchmark (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 import os 5 import os
6 6
7 from core import perf_benchmark 7 from core import perf_benchmark
8 8
9 from measurements import tab_switching 9 from measurements import tab_switching
10 from page_sets.system_health import multi_tab_stories 10 from page_sets.system_health import multi_tab_stories
(...skipping 18 matching lines...) Expand all
29 29
30 @classmethod 30 @classmethod
31 def AddBenchmarkCommandLineArgs(cls, parser): 31 def AddBenchmarkCommandLineArgs(cls, parser):
32 parser.add_option('--tabset-repeat', type='int', default=1, 32 parser.add_option('--tabset-repeat', type='int', default=1,
33 help='repeat tab page set') 33 help='repeat tab page set')
34 34
35 def CreateStorySet(self, options): 35 def CreateStorySet(self, options):
36 story_set = story.StorySet( 36 story_set = story.StorySet(
37 archive_data_file='../page_sets/data/system_health_desktop.json', 37 archive_data_file='../page_sets/data/system_health_desktop.json',
38 base_dir=os.path.dirname(os.path.abspath(__file__)), 38 base_dir=os.path.dirname(os.path.abspath(__file__)),
39 cloud_storage_bucket=story.PARTNER_BUCKET) 39 cloud_storage_bucket=story.PARTNER_BUCKET,
40 verify_names=True)
40 story_set.AddStory(multi_tab_stories.MultiTabTypical24Story( 41 story_set.AddStory(multi_tab_stories.MultiTabTypical24Story(
41 story_set, False, options.tabset_repeat)) 42 story_set, False, options.tabset_repeat))
42 return story_set 43 return story_set
43 44
44 @classmethod 45 @classmethod
45 def Name(cls): 46 def Name(cls):
46 return 'tab_switching.typical_25' 47 return 'tab_switching.typical_25'
47 48
48 @classmethod 49 @classmethod
49 def ShouldTearDownStateAfterEachStoryRun(cls): 50 def ShouldTearDownStateAfterEachStoryRun(cls):
50 return False 51 return False
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698