mirror of
https://github.com/google/benchmark.git
synced 2024-12-27 13:00:36 +08:00
Expose methods for custom main functions in Python. (#993)
This commit is contained in:
parent
8f5e6ae091
commit
7f27afe83b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user