Commit 6e80515c authored by Juan Antonio Navarro Perez's avatar Juan Antonio Navarro Perez Committed by Commit Bot

[tools/perf] Switch to config.GetBenchmarkByName

No longer need to import benchmark_runner module for this.

Depends on catapult CL landing first:
https://chromium-review.googlesource.com/c/catapult/+/1704194

Bug: 981349
Change-Id: Idec7329dad65533efd155cde10f4c5205acf0593
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1702318Reviewed-by: default avatarJuan Antonio Navarro Pérez <perezju@chromium.org>
Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Auto-Submit: Juan Antonio Navarro Pérez <perezju@chromium.org>
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#678949}
parent 13b8543f
......@@ -18,9 +18,6 @@ from core import path_util
path_util.AddPyUtilsToPath()
from py_utils import cloud_storage
path_util.AddTelemetryToPath()
from telemetry import benchmark_runner
from chrome_telemetry_build import chromium_config
......@@ -118,8 +115,7 @@ def main(args):
os.path.join(perf_dir, 'contrib')]
config = chromium_config.ChromiumConfig(
top_level_dir=path_util.GetPerfDir(), benchmark_dirs=benchmark_dirs)
benchmark = benchmark_runner.GetBenchmarkByName(
options.benchmark_name, config)
benchmark = config.GetBenchmarkByName(options.benchmark_name)
if not benchmark:
raise ValueError('No such benchmark: %s' % options.benchmark_name)
deps[benchmark.Name()] = _FetchDepsForBenchmark(benchmark)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment