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

Unified Diff: tools/perf/core/project_config.py

Issue 1361523003: Add crash_service to Telemetry's isolates. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fck
Patch Set: Created 5 years, 3 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/core/binary_dependencies.json ('k') | tools/telemetry/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/core/project_config.py
diff --git a/tools/perf/core/project_config.py b/tools/perf/core/project_config.py
index a82bf7e777ea782dbd03acd846bf8085a31fb4c9..df488c7fcc27979b49054da003c7156a445da85a 100644
--- a/tools/perf/core/project_config.py
+++ b/tools/perf/core/project_config.py
@@ -5,17 +5,21 @@
import os
import sys
-sys.path.append(os.path.join(
- os.path.dirname(__file__), os.pardir, os.pardir, 'telemetry'))
+
+THIS_DIR = os.path.dirname(os.path.abspath(__file__))
+TOP_LEVEL_DIR = os.path.normpath(os.path.join(THIS_DIR, os.pardir))
+TELEMETRY_DIR = os.path.normpath(os.path.join(
+ TOP_LEVEL_DIR, os.pardir, 'telemetry'))
+
+sys.path.append(TELEMETRY_DIR)
from telemetry import benchmark_runner
-top_level_dir = os.path.dirname(os.path.realpath(
- os.path.join(__file__, os.pardir)))
+binary_dependencies_file = os.path.join(THIS_DIR, 'binary_dependencies.json')
config = benchmark_runner.ProjectConfig(
- top_level_dir=top_level_dir,
- benchmark_dirs=[os.path.join(top_level_dir, 'benchmarks')])
+ top_level_dir=TOP_LEVEL_DIR,
+ benchmark_dirs=[os.path.join(TOP_LEVEL_DIR, 'benchmarks')],
+ client_config=binary_dependencies_file)
-config.telemetry_dir = os.path.realpath(os.path.join(
- top_level_dir, os.pardir, 'telemetry'))
+config.telemetry_dir = TELEMETRY_DIR
« no previous file with comments | « tools/perf/core/binary_dependencies.json ('k') | tools/telemetry/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698