I just watched a quite nice tutorial about the "High performance Python". The task was to generate Mandelbrot Image of 1000x1000 pixels. Below you can find several tools and commands which I have used by following the tutorial (just for C Python).
# I edited pure_python_added-decoration-profile.py # and added @profile decorater to funtion # which I want profile line by line kernprof.py -l -v pure_python_added-decoration-profile.py 1000 1000