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

Unified Diff: tools/perf/run_measurement

Issue 166483010: Add dedicated cros bootstrap_deps. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Remove URL and add note Created 6 years, 10 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/cros/bootstrap_deps ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/run_measurement
===================================================================
--- tools/perf/run_measurement (revision 252160)
+++ tools/perf/run_measurement (working copy)
@@ -18,6 +18,7 @@
# Directory in which to save bootstrap files.
BOOTSTRAP_BASE_PATH = os.path.join(SCRIPT_PATH, 'support', 'bootstrap_files')
+CROS_DIR = os.path.join('src', 'tools', 'cros')
PERF_DIR = os.path.join('src', 'tools', 'perf')
TELEMETRY_DIR = os.path.join('src', 'tools', 'telemetry')
TELEMETRY_TOOLS_DIR = os.path.join('src', 'tools', 'telemetry_tools')
@@ -61,12 +62,12 @@
bootstrap.DownloadDeps(BOOTSTRAP_BASE_PATH, bootstrap_deps_url)
-def ListBootstrapDeps(base_path):
+def ListBootstrapDeps(base_path, subdir):
"""List the deps required for telemetry."""
sys.path.append(os.path.join(base_path, TELEMETRY_TOOLS_DIR))
import telemetry_bootstrap
- deps_file = os.path.join(base_path, PERF_DIR, DEPS_FILE)
+ deps_file = os.path.join(base_path, subdir, DEPS_FILE)
return telemetry_bootstrap.ListAllDepsPaths(deps_file)
@@ -78,8 +79,12 @@
new_perf_path = os.path.join(new_base_path, PERF_DIR)
new_telemetry_path = os.path.join(new_base_path, TELEMETRY_DIR)
+ if '--print-bootstrap-deps-cros' in sys.argv:
+ print ListBootstrapDeps(new_base_path, CROS_DIR)
+ return 0
+
if '--print-bootstrap-deps' in sys.argv:
- print ListBootstrapDeps(new_base_path)
+ print ListBootstrapDeps(new_base_path, PERF_DIR)
return 0
sys.path.append(new_perf_path)
« no previous file with comments | « tools/cros/bootstrap_deps ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698