Question

I want to profile my python code. My code includes several modules where each module is a class with several functions. I am using eclipse PyDev as IDE. I have read a few QA about timeit and cprofile but using these profilers are a bit hard when you have classes that make use of other classes and there are chain calls through them.

I was just wondering if there is a profiler like Java profilers which can show me where i need to optimize my code (i was thinking of multithreading some parts of my code but i want to make sure which parts need it).

Was it helpful?

Solution

pycallgraph is a beautiful tool for profiling python code http://pycallgraph.slowchop.com/en/master/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top