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

Unified Diff: tools/telemetry/telemetry/core/util.py

Issue 274773002: [telemetry] Prototype for specifying page sets using Python imports and Telemetry discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/telemetry/telemetry/core/util.py
diff --git a/tools/telemetry/telemetry/core/util.py b/tools/telemetry/telemetry/core/util.py
index 2ae9d725e8015e5092e458ef3f576c4e65cf668a..38bcc256c08ed0c1ab27ac66760b0d7e00ee84cd 100644
--- a/tools/telemetry/telemetry/core/util.py
+++ b/tools/telemetry/telemetry/core/util.py
@@ -2,7 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import imp
import inspect
import logging
import os
@@ -41,14 +40,6 @@ def AddDirToPythonPath(*path_parts):
if os.path.isdir(path) and path not in sys.path:
sys.path.append(path)
-_counter = [0]
-def _GetUniqueModuleName():
- _counter[0] += 1
- return "page_set_module_" + str(_counter[0])
-
-def GetPythonPageSetModule(file_path):
- return imp.load_source(_GetUniqueModuleName(), file_path)
-
def WaitFor(condition, timeout):
"""Waits for up to |timeout| secs for the function |condition| to return True.
« no previous file with comments | « tools/telemetry/telemetry/core/environment.py ('k') | tools/telemetry/telemetry/page/extensions_profile_creator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698