I was wondering if there is a Python equivalent of Java's VisualVM. The feature that I need is real-time profiling of a running Python interpreter.
A bit of background: a recent change to my code base slowed it down considerably. I would like to find out what my code is doing without having to restart the calculation. The alternative is to stop the interpreter and to restart it with -m cProfile
, losing a day of CPU time.
Any suggestions are greatly appreciated.
sys.set_trace
that can be set while the program runs. It should be possible to start profiling while the program runs. – Discourse