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

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

Issue 2097303002: [PCv2] migrate page_cycler_v2.intl_ja_zh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove_workaround Created 4 years, 5 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/benchmarks/page_cycler_v2.py ('k') | 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 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 from telemetry.page import cache_temperature as cache_temperature_module
4 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
5 from telemetry.page import shared_page_state 6 from telemetry.page import shared_page_state
6 from telemetry import story 7 from telemetry import story
7 8
8 9
9 class IntlJaZhPage(page_module.Page): 10 class IntlJaZhPage(page_module.Page):
10 11
11 def __init__(self, url, page_set): 12 def __init__(self, url, page_set, cache_temperature=None):
12 super(IntlJaZhPage, self).__init__( 13 super(IntlJaZhPage, self).__init__(
13 url=url, page_set=page_set, 14 url=url, page_set=page_set,
14 shared_page_state_class=shared_page_state.SharedDesktopPageState) 15 shared_page_state_class=shared_page_state.SharedDesktopPageState,
16 cache_temperature=cache_temperature)
15 17
16 18
17 class IntlJaZhPageSet(story.StorySet): 19 class IntlJaZhPageSet(story.StorySet):
18 20
19 """ Popular pages in Japanese and Chinese. """ 21 """ Popular pages in Japanese and Chinese. """
20 22
21 def __init__(self): 23 def __init__(self, cache_temperatures=None):
22 super(IntlJaZhPageSet, self).__init__( 24 super(IntlJaZhPageSet, self).__init__(
23 archive_data_file='data/intl_ja_zh.json', 25 archive_data_file='data/intl_ja_zh.json',
24 cloud_storage_bucket=story.PARTNER_BUCKET) 26 cloud_storage_bucket=story.PARTNER_BUCKET)
27 if cache_temperatures is None:
28 cache_temperatures = [cache_temperature_module.ANY]
25 29
26 urls_list = [ 30 urls_list = [
27 # Why: #5 Japanese site 31 # Why: #5 Japanese site
28 'http://www.amazon.co.jp', 32 'http://www.amazon.co.jp',
29 'http://mixi.jp/', 33 'http://mixi.jp/',
30 'http://dtiblog.com/', 34 'http://dtiblog.com/',
31 'http://2ch.net/', 35 'http://2ch.net/',
32 'http://jugem.jp/', 36 'http://jugem.jp/',
33 'http://hatena.ne.jp/', 37 'http://hatena.ne.jp/',
34 'http://goo.ne.jp/', 38 'http://goo.ne.jp/',
(...skipping 13 matching lines...) Expand all
48 # Why: #4 Chinese site 52 # Why: #4 Chinese site
49 'http://www.sina.com.cn/', 53 'http://www.sina.com.cn/',
50 # Why: #5 Chinese site 54 # Why: #5 Chinese site
51 # pylint: disable=line-too-long 55 # pylint: disable=line-too-long
52 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb4 80', 56 'http://www.google.com.hk/#q=%E9%82%84%E6%8F%90%E4%BE%9B&fp=c44d333e710cb4 80',
53 'http://udn.com/NEWS/mainpage.shtml', 57 'http://udn.com/NEWS/mainpage.shtml',
54 'http://ruten.com.tw/' 58 'http://ruten.com.tw/'
55 ] 59 ]
56 60
57 for url in urls_list: 61 for url in urls_list:
58 self.AddStory(IntlJaZhPage(url, self)) 62 for temp in cache_temperatures:
63 self.AddStory(IntlJaZhPage(url, self, cache_temperature=temp))
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/page_cycler_v2.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698