Skip to content

Commit

Permalink
Push run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hstennes committed Jan 6, 2025
1 parent b39b457 commit 56f43af
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import argparse

import cProfile, pstats, io
from pstats import SortKey

if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('--p1', required=True, help="Path to a folder containing a bot.py file.")
Expand All @@ -22,6 +25,16 @@
out_dir="matches",
out_name=None,
show_indicators=True,
debug=True # TODO: debug option
debug=False,
instrument=True
)

# pr = cProfile.Profile()
# pr.enable()
run_game(game_args)
# pr.disable()
# s = io.StringIO()
# sortby = SortKey.CUMULATIVE
# ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
# ps.print_stats()
# print(s.getvalue())

0 comments on commit 56f43af

Please sign in to comment.