Search notes:

Python library: line_profiler

$ pip install line_profiler
Decorate functions to be profiled with @profile:
@profile
def xyz():
    …
Profile python script
$ kernprof -l -v ./the-script.py 

Index