This commit is contained in:
Eason
2024-06-12 16:09:12 +08:00
commit d8b781011b
156 changed files with 26489 additions and 0 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 KiB

View File

@ -0,0 +1,19 @@
export FILE=profile.pstats
python -m cProfile -s cumtime -o $FILE \
-m mlgame \
-i ../ml/ml_play_template_1P.py \
-i ../ml/ml_play_template_1P.py \
-i ../ml/ml_play_template_1P.py \
-i ../ml/ml_play_template_1P.py \
-i ../ml/ml_play_template_1P.py \
-i ../ml/ml_play_template_2P.py \
-f 120 -1 \
../ \
--frame_limit=30 --sound="off"
python -m gprof2dot -f pstats $FILE | dot -T png -o ${FILE}.png
# python -m pstats profile.pstats
# sort cumtime
# stats

View File

@ -0,0 +1,7 @@
python -m mlgame \
--ws="wss://demo.piesocket.com/v3/jesse?api_key=VCXCEuvhGcBDP7XhiJJUDvR1e1D3eiVjgZ9VRiaV" \
-f 30 --nd -1 \
-i ../ml/ml_play_template_1P.py \
-i ../ml/ml_play_template_2P.py \
../ \
--frame_limit 300