質問

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).

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top