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

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

Issue 2166723002: [PCv2] Migrate intl.ko_th_vi 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_ko_th_vi.py
diff --git a/tools/perf/page_sets/intl_ko_th_vi.py b/tools/perf/page_sets/intl_ko_th_vi.py
index 0615044f85e893b91283a9e2cef7618865d8895f..a065f74e12e0caafa18f64f8805f18337beba36c 100644
--- a/tools/perf/page_sets/intl_ko_th_vi.py
+++ b/tools/perf/page_sets/intl_ko_th_vi.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,20 +9,23 @@ from telemetry import story
class IntlKoThViPage(page_module.Page):
- def __init__(self, url, page_set):
+ def __init__(self, url, page_set, cache_temperature=None):
super(IntlKoThViPage, 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)
class IntlKoThViPageSet(story.StorySet):
""" Popular pages in Korean, Thai and Vietnamese. """
- def __init__(self):
+ def __init__(self, cache_temperatures=None):
super(IntlKoThViPageSet, self).__init__(
archive_data_file='data/intl_ko_th_vi.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
+ if cache_temperatures is None:
+ cache_temperatures = [cache_temperature_module.ANY]
urls_list = [
# Why: #7 site in Vietnam
@@ -48,4 +52,5 @@ class IntlKoThViPageSet(story.StorySet):
]
for url in urls_list:
- self.AddStory(IntlKoThViPage(url, self))
+ for temp in cache_temperatures:
+ self.AddStory(IntlKoThViPage(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