3

I'm running a python script with a few imported classes (like Tweepy and PyMongo). I'm running into performance issues (aka clogging at 100% of CPU). I'd like to know which of my Python classes are resonsible!

Is that possible?

(Detailed description of my issues here.)

Community
  • 1
  • 1
knutole
  • 1,709
  • 2
  • 22
  • 41

1 Answers1

2

Very possible to do via a profiler.

A profiler basically runs your code and saves statistics about it while doing so. For instance which functions call which and how long each call takes etc.

Check out this answer for a bit more info.

Community
  • 1
  • 1
Morten Jensen
  • 5,818
  • 3
  • 43
  • 55