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

Unified Diff: tools/perf/profile_creators/small_profile_creator.py

Issue 311193003: [telemetry] Cleanups for benchmarks importing page sets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove description fo' realz. (from gpu tests) Created 6 years, 6 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
Index: tools/perf/profile_creators/small_profile_creator.py
diff --git a/tools/perf/profile_creators/small_profile_creator.py b/tools/perf/profile_creators/small_profile_creator.py
index 90c21bb478b23f4bff86fad2459869bed3283d0e..43f6c85255664fbbaa36bbd7a1fe4189ecd4398a 100644
--- a/tools/perf/profile_creators/small_profile_creator.py
+++ b/tools/perf/profile_creators/small_profile_creator.py
@@ -2,12 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import os
-
-from telemetry.core import util
-from telemetry.page import page_set
from telemetry.page import profile_creator
+import page_sets
+
class SmallProfileCreator(profile_creator.ProfileCreator):
"""
@@ -16,8 +14,7 @@ class SmallProfileCreator(profile_creator.ProfileCreator):
def __init__(self):
super(SmallProfileCreator, self).__init__()
- typical_25 = os.path.join(util.GetBaseDir(), 'page_sets', 'typical_25.py')
- self._page_set = page_set.PageSet.FromFile(typical_25)
+ self._page_set = page_sets.Typical25()
# Open all links in the same tab save for the last _NUM_TABS links which
# are each opened in a new tab.
« no previous file with comments | « tools/perf/profile_creators/many_extensions_profile_creator.py ('k') | tools/perf/profile_creators/theme_profile_creator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698