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

Side by Side Diff: tools/perf/page_sets/blank_page_with_large_profile.py

Issue 2929513002: Explicitly set story names for startup benchmarks (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 | « tools/perf/page_sets/blank_page.py ('k') | tools/perf/page_sets/chrome_signin.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 from page_sets import pregenerated_large_profile_shared_state 4 from page_sets import pregenerated_large_profile_shared_state
5 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
6 from telemetry import story 6 from telemetry import story
7 7
8 8
9 class BlankPageWithLargeProfile(page_module.Page): 9 class BlankPageWithLargeProfile(page_module.Page):
10 def __init__(self, url, page_set): 10 def __init__(self, url, page_set, name):
11 super(BlankPageWithLargeProfile, self).__init__( 11 super(BlankPageWithLargeProfile, self).__init__(
12 url=url, page_set=page_set, 12 url=url, page_set=page_set,
13 shared_page_state_class=pregenerated_large_profile_shared_state. 13 shared_page_state_class=pregenerated_large_profile_shared_state.
14 PregeneratedLargeProfileSharedState) 14 PregeneratedLargeProfileSharedState,
15 name=name)
15 16
16 17
17 class BlankPageSetWithLargeProfile(story.StorySet): 18 class BlankPageSetWithLargeProfile(story.StorySet):
18 """A single blank page loaded with a large profile.""" 19 """A single blank page loaded with a large profile."""
19 20
20 def __init__(self): 21 def __init__(self):
21 super(BlankPageSetWithLargeProfile, self).__init__() 22 super(BlankPageSetWithLargeProfile, self).__init__(verify_names=True)
22 self.AddStory(BlankPageWithLargeProfile( 23 self.AddStory(BlankPageWithLargeProfile(
23 'file://blank_page/blank_page.html', self)) 24 'file://blank_page/blank_page.html', self,
25 'blank_page.html'))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/blank_page.py ('k') | tools/perf/page_sets/chrome_signin.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698