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

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

Issue 1568103002: Update tools/perf to use cloud_storage from catapult. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/fetch_benchmark_deps.py ('k') | tools/perf/profile_creators/update_remote_extensions.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/profile_creators/__init__.py
diff --git a/tools/perf/profile_creators/__init__.py b/tools/perf/profile_creators/__init__.py
index 6220954c33664bdeeb9830915fa4ee1e87db077f..b778bdf3ba47949555077e13a9291aa272a8ccf9 100644
--- a/tools/perf/profile_creators/__init__.py
+++ b/tools/perf/profile_creators/__init__.py
@@ -2,3 +2,17 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Generators for Chrome profiles for testing purposes."""
+import os
+import sys
+
+chromium_src_path = os.path.realpath(os.path.join(
erikchen 2016/01/08 00:33:29 This looks like duplicated code. Is there a reason
aiolos (Not reviewing) 2016/01/08 19:01:16 Nope, good call.
+ os.path.abspath(__file__), '..', '..', '..', '..'))
+
+telemetry_path = os.path.join(chromium_src_path, 'tools', 'telemetry')
+if telemetry_path not in sys.path:
+ sys.path.insert(1, telemetry_path)
+
+catapult_base_path = os.path.join(
+ chromium_src_path, 'third_party', 'catapult', 'catapult_base')
+if catapult_base_path not in sys.path:
+ sys.path.insert(1, catapult_base_path)
« no previous file with comments | « tools/perf/fetch_benchmark_deps.py ('k') | tools/perf/profile_creators/update_remote_extensions.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698