line-by-line

How can I profile Python code line-by-line?

How can I profile Python code line-by-line? Question: I’ve been using cProfile to profile my code, and it’s been working great. I also use gprof2dot.py to visualize the results (makes it a little clearer). However, cProfile (and most other Python profilers I’ve seen so far) seem to only profile at the function-call level. This causes …

Total answers: 5