I use cProfile, pstats and Gprof2dot to profile a fairly long python script.
The results tell me that most of the time is spent calling the method in the object that I defined. However, I would like to know exactly what line number inside this function is time.
Any idea how to get this additional information?
(By the way, I'm using Python 2.6 on the OSX snow leopard if that helps ...)
source
share