Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 194 Bytes

File metadata and controls

12 lines (6 loc) · 194 Bytes
pip2 install line_profiler

then add @profile to the methods you are interested in.

run with:

kernprof -l game.py

analyze results:

python2 -m line_profiler game.py.lprof | less