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.
Have a look here: Is there a visual profiler for Python? and here: Which Python memory profiler is recommended?
From what I found, there isn't really an easy way to do memory profiling if your application is more than just a script. Otherwise the easiest is to use https://pypi.python.org/pypi/memory_profiler.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With