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

Unified Diff: tools/telemetry/examples/run_benchmark

Issue 1368533002: [Telemetry] Add an example for adding an end to end Telemetry benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Kari's comments Created 5 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
« no previous file with comments | « tools/telemetry/examples/benchmarks/v8_metric.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/examples/run_benchmark
diff --git a/tools/telemetry/examples/run_benchmark b/tools/telemetry/examples/run_benchmark
new file mode 100755
index 0000000000000000000000000000000000000000..6b2d3761a7baf95b3fa78e63fbe92b145eeacb5f
--- /dev/null
+++ b/tools/telemetry/examples/run_benchmark
@@ -0,0 +1,19 @@
+#!/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
+
+def main():
+ top_level_dir = os.path.dirname(__file__)
+ config = benchmark_runner.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())
« no previous file with comments | « tools/telemetry/examples/benchmarks/v8_metric.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698