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

Unified Diff: tools/perf/profile_creators/extensions_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
« no previous file with comments | « tools/perf/page_sets/top_10.py ('k') | tools/perf/profile_creators/many_extensions_profile_creator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/profile_creators/extensions_profile_creator.py
diff --git a/tools/telemetry/telemetry/page/extensions_profile_creator.py b/tools/perf/profile_creators/extensions_profile_creator.py
similarity index 97%
rename from tools/telemetry/telemetry/page/extensions_profile_creator.py
rename to tools/perf/profile_creators/extensions_profile_creator.py
index 2ea15bd3e6909fdc87d53493bd494adcad1fc29b..1560c10d90ef8e2e28c6728bcd6e7e1f47826cab 100644
--- a/tools/telemetry/telemetry/page/extensions_profile_creator.py
+++ b/tools/perf/profile_creators/extensions_profile_creator.py
@@ -1,6 +1,7 @@
# Copyright 2013 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.
+
import json
import logging
import os
@@ -13,10 +14,10 @@ import time
import urllib2
import zipfile
-from telemetry.core import util
-from telemetry.page import page_set
from telemetry.page import profile_creator
+import page_sets
+
def _ExternalExtensionsPath():
"""Returns the OS-dependent path at which to install the extension deployment
@@ -84,8 +85,7 @@ class ExtensionsProfileCreator(profile_creator.ProfileCreator):
def __init__(self):
super(ExtensionsProfileCreator, 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()
# Directory into which the output profile is written.
self._output_profile_path = None
« no previous file with comments | « tools/perf/page_sets/top_10.py ('k') | tools/perf/profile_creators/many_extensions_profile_creator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698