aboutsummaryrefslogtreecommitdiff
path: root/catapult/telemetry/examples/run_benchmark
blob: f24a386c6d909c51f320c52320cabe685552e97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python
# Copyright (c) 2015 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.
import os
import sys

sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from telemetry import benchmark_runner
from telemetry import project_config

def main():
  top_level_dir = os.path.dirname(__file__)
  config = project_config.ProjectConfig(
      top_level_dir=top_level_dir,
      benchmark_dirs=[os.path.join(top_level_dir, 'benchmarks')])
  return benchmark_runner.main(config)

if __name__ == '__main__':
  sys.exit(main())