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

Unified Diff: tools/perf/ct_run_benchmark

Issue 730033005: telemetry: Add ct_run_benchmark to run benchmarks in CT's repository (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 6 years, 1 month 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/perf/ct_run_benchmark
diff --git a/tools/perf/run_benchmark b/tools/perf/ct_run_benchmark
similarity index 56%
copy from tools/perf/run_benchmark
copy to tools/perf/ct_run_benchmark
index e077bb62a4d789b3908b4c4f52bef14c0dc08a07..f42ce08d49e854a8f304d90a1dc9ecfbeffd579e 100755
--- a/tools/perf/run_benchmark
+++ b/tools/perf/ct_run_benchmark
@@ -1,8 +1,11 @@
#!/usr/bin/env python
-# Copyright (c) 2013 The Chromium Authors. All rights reserved.
+# Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# This script finds and executes benchmarks which live in Cluster Telemetry's
+# repository.
+
import os
import sys
@@ -12,7 +15,11 @@ from telemetry import benchmark_runner
from telemetry.core import environment
+CT_BASE_DIR = os.path.join('/', 'b', 'storage', 'benchmarks')
+sys.path.append(os.path.join(CT_BASE_DIR))
+
+
if __name__ == '__main__':
base_dir = os.path.dirname(os.path.realpath(__file__))
- benchmark_runner.config = environment.Environment([base_dir])
+ benchmark_runner.config = environment.Environment([CT_BASE_DIR])
sys.exit(benchmark_runner.main())
« tools/perf/benchmarks/skpicture_printer.py ('K') | « tools/perf/benchmarks/skpicture_printer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698