Add perf script for bot experimentation with benchmarks
Bug: b/342082216
Change-Id: I5ea40639e493c277b370412aaa29d3648a149af8
diff --git a/tools/perf.py b/tools/perf.py
new file mode 100755
index 0000000..5bd498b
--- /dev/null
+++ b/tools/perf.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python3
+# Copyright (c) 2024, the R8 project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+import argparse
+import sys
+
+
+def ParseOptions():
+ result = argparse.ArgumentParser()
+ result.add_argument('--app',
+ help='Specific app to meassure, default all',
+ default='all')
+ return result.parse_known_args()
+
+def main():
+ (options, args) = ParseOptions()
+ print('Running performance on app %s' % options.app)
+
+if __name__ == '__main__':
+ sys.exit(main())