alenrooni
alenrooni

Reputation: 127

How i can profile a python script consisting of multiple modules and classes?

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

Upvotes: 1

Views: 1388

Answers (1)

Neaţu Ovidiu Gabriel
Neaţu Ovidiu Gabriel

Reputation: 903

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

Upvotes: 1

Related Questions