How to profile a python code to find causes of slowness?


Use one of these modules:

  • cProfile is in C. It is faster and preferable.
  • profile