I am using Python 2.7 with Pycharm.
I have a very large project, and somewhere in the stack there is a function that takes an abnormal amount of time to complete.
I tried to time my functions manually (adding start = time.time()
and end = time.time()
and displaying end-start
) but there are a lot of functions, a lot of iterations and recursive calls. Logging times didn't help. I also tried to use the debugger, but debugging by clicking through the code skews the actual computation time.
Can anyone suggest a better way of determining which function in my project takes a long time?
ANSWER
PyCharm has an integrated profiler, so I used that.