Expose methods for custom main functions in Python. (#993)

This commit is contained in:
Skye Wanderman-Milne 2020-06-30 01:51:30 -07:00 committed by GitHub
parent 8f5e6ae091
commit 7f27afe83b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -60,3 +60,8 @@ def _run_benchmarks(argv):
def main(argv=None):
return app.run(_run_benchmarks, argv=argv, flags_parser=_flags_parser)
# Methods for use with custom main function.
initialize = _benchmark.Initialize
run_benchmarks = _benchmark.RunSpecifiedBenchmarks