reinit
This commit is contained in:
19
TankMan/scripts/profile.sh
Normal file
19
TankMan/scripts/profile.sh
Normal 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
|
Reference in New Issue
Block a user