line_profiler
@profile
$ kernprof -l x.py
$ python3 -m line_profiler x.py.lprof > prof
"ValueError: source code string cannot contain null bytes"
kernprof -l test.py not kernprof -l python test.py
---
This page is auto-translated from /nishio/line_profiler. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.