Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VisualVM equivalent for Python

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.

like image 391
mbatchkarov Avatar asked May 31 '26 18:05

mbatchkarov


1 Answers

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.

like image 198
Jan DB Avatar answered Jun 03 '26 08:06

Jan DB