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

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

Issue 2859093002: Remove page_cycler_v2.tough_layout_cases (Closed)
Patch Set: Created 3 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
« 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
(Empty)
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
3 # found in the LICENSE file.
4 from telemetry.page import cache_temperature as cache_temperature_module
5 from telemetry.page import page as page_module
6 from telemetry.page import shared_page_state
7 from telemetry import story
8
9
10 class ToughLayoutCasesPage(page_module.Page):
11
12 def __init__(self, url, page_set, cache_temperature=None):
13 super(ToughLayoutCasesPage, self).__init__(
14 url=url, page_set=page_set, credentials_path = 'data/credentials.json',
15 shared_page_state_class=shared_page_state.SharedDesktopPageState,
16 cache_temperature=cache_temperature)
17 self.archive_data_file = 'data/tough_layout_cases.json'
18
19
20 class ToughLayoutCasesPageSet(story.StorySet):
21
22 """
23 The slowest layouts observed in the alexa top 1 million sites in July 2013.
24 """
25
26 def __init__(self, cache_temperatures=None):
27 super(ToughLayoutCasesPageSet, self).__init__(
28 archive_data_file='data/tough_layout_cases.json',
29 cloud_storage_bucket=story.PARTNER_BUCKET)
30 if cache_temperatures is None:
31 cache_temperatures = [cache_temperature_module.ANY]
32
33 urls_list = [
34 'http://oilevent.com',
35 'http://www.muzoboss.ru',
36 'http://natunkantha.com',
37 'http://www.mossiella.com',
38 'http://bookish.com',
39 'http://mydiyclub.com',
40 'http://amarchoti.blogspot.com',
41 'http://picarisimo.es',
42 'http://chinaapache.com',
43 'http://indoritel.com'
44 ]
45
46 for url in urls_list:
47 for temp in cache_temperatures:
48 self.AddStory(ToughLayoutCasesPage(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