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

Side by Side 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 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 unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script finds and executes benchmarks which live in Cluster Telemetry's
7 # repository.
8
6 import os 9 import os
7 import sys 10 import sys
8 11
9 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry')) 12 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry'))
10 13
11 from telemetry import benchmark_runner 14 from telemetry import benchmark_runner
12 from telemetry.core import environment 15 from telemetry.core import environment
13 16
14 17
18 CT_BASE_DIR = os.path.join('/', 'b', 'storage', 'benchmarks')
19 sys.path.append(os.path.join(CT_BASE_DIR))
20
21
15 if __name__ == '__main__': 22 if __name__ == '__main__':
16 base_dir = os.path.dirname(os.path.realpath(__file__)) 23 base_dir = os.path.dirname(os.path.realpath(__file__))
17 benchmark_runner.config = environment.Environment([base_dir]) 24 benchmark_runner.config = environment.Environment([CT_BASE_DIR])
18 sys.exit(benchmark_runner.main()) 25 sys.exit(benchmark_runner.main())
OLDNEW
« 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