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

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

Issue 2164913002: [PCv2] Migrate OopifBasicPageSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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/oopif_basic_page_set.py
diff --git a/tools/perf/page_sets/oopif_basic_page_set.py b/tools/perf/page_sets/oopif_basic_page_set.py
index e76d9e224db60aaa40b0927802471c7961d2354b..854b07a992908d3410816321f80f6a8c4d69a8b3 100644
--- a/tools/perf/page_sets/oopif_basic_page_set.py
+++ b/tools/perf/page_sets/oopif_basic_page_set.py
@@ -1,6 +1,7 @@
# Copyright 2015 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
from telemetry import story
@@ -9,10 +10,12 @@ class OopifBasicPageSet(story.StorySet):
iframes.
"""
- def __init__(self):
+ def __init__(self, cache_temperatures=None):
super(OopifBasicPageSet, self).__init__(
archive_data_file='data/oopif_basic.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
+ if cache_temperatures is None:
+ cache_temperatures = [cache_temperature_module.ANY]
urls = [
'http://www.cnn.com',
@@ -32,4 +35,5 @@ class OopifBasicPageSet(story.StorySet):
]
for url in urls:
- self.AddStory(page.Page(url, self))
+ for temp in cache_temperatures:
+ self.AddStory(page.Page(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