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

Unified Diff: tools/perf/page_sets/intl_hi_ru.py

Issue 2163093004: [PCv2] Migrate intl.hi_ru page set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/perf/benchmarks/page_cycler_v2.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/intl_hi_ru.py
diff --git a/tools/perf/page_sets/intl_hi_ru.py b/tools/perf/page_sets/intl_hi_ru.py
index 94e3e546ca3b26b6097301335417a4f299e595f7..801e970f1269c4f3efa4d8618eef866b01e59995 100644
--- a/tools/perf/page_sets/intl_hi_ru.py
+++ b/tools/perf/page_sets/intl_hi_ru.py
@@ -1,6 +1,7 @@
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from telemetry.page import cache_temperature as cache_temperature_module
from telemetry.page import page as page_module
from telemetry.page import shared_page_state
from telemetry import story
@@ -8,10 +9,11 @@ from telemetry import story
class IntlHiRuPage(page_module.Page):
- def __init__(self, url, page_set):
+ def __init__(self, url, page_set, cache_temperature=None):
super(IntlHiRuPage, self).__init__(
url=url, page_set=page_set,
- shared_page_state_class=shared_page_state.SharedDesktopPageState)
+ shared_page_state_class=shared_page_state.SharedDesktopPageState,
+ cache_temperature=cache_temperature)
self.archive_data_file = 'data/intl_hi_ru.json'
@@ -19,10 +21,12 @@ class IntlHiRuPageSet(story.StorySet):
""" Popular pages in Hindi and Russian. """
- def __init__(self):
+ def __init__(self, cache_temperatures=None):
super(IntlHiRuPageSet, self).__init__(
archive_data_file='data/intl_hi_ru.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
+ if cache_temperatures is None:
+ cache_temperatures = [cache_temperature_module.ANY]
urls_list = [
# Why: #12 site in Russia
@@ -45,4 +49,5 @@ class IntlHiRuPageSet(story.StorySet):
]
for url in urls_list:
- self.AddStory(IntlHiRuPage(url, self))
+ for temp in cache_temperatures:
+ self.AddStory(IntlHiRuPage(url, self, cache_temperature=temp))
« 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