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

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

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/startup_pages_record.py ('k') | tools/perf/page_sets/top_10.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 telemetry import story
5 from telemetry.page import page
4 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
5 from telemetry.page import page
6 from telemetry.page import page_set
7 7
8 8
9 class ThrottledPluginsPageSet(page_set.PageSet): 9 class ThrottledPluginsPageSet(story.StorySet):
10 def __init__(self): 10 def __init__(self):
11 super(ThrottledPluginsPageSet, self).__init__( 11 super(ThrottledPluginsPageSet, self).__init__(
12 archive_data_file='data/throttled_plugins.json', 12 archive_data_file='data/throttled_plugins.json',
13 bucket=page_set.PUBLIC_BUCKET) 13 cloud_storage_bucket=story.PUBLIC_BUCKET)
14 urls_with_throttled_plugins = [ 14 urls_with_throttled_plugins = [
15 'http://cnn.com', 15 'http://cnn.com',
16 'http://techcrunch.com', 16 'http://techcrunch.com',
17 'http://wsj.com', 17 'http://wsj.com',
18 'http://youtube.com' 18 'http://youtube.com'
19 ] 19 ]
20 for url in urls_with_throttled_plugins: 20 for url in urls_with_throttled_plugins:
21 self.AddUserStory( 21 self.AddUserStory(
22 page.Page( 22 page.Page(
23 url, page_set=self, 23 url, page_set=self,
24 shared_page_state_class=shared_page_state.SharedDesktopPageState)) 24 shared_page_state_class=shared_page_state.SharedDesktopPageState))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/startup_pages_record.py ('k') | tools/perf/page_sets/top_10.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698