I am profiling my python code using Spyder IDE.
As you can see in the screenshot below, it took 1.20 min = 80
sec for the _get_loglik_seq
function to execute. However, the timing of various functions/procedures that constitutes this function are the following: solve_EV
= 29.78s, c_get_gamma
= 10.12 sec, norm
= 6.57 sec, outer
= 4.70 sec, <method dot ...
: 2.17 sec, all others: <1 sec.
If one sums up these times, the result will be about 54 s, which is way smaller than 80s.
How is it possible? Is it a profiler bug or did I miss something? Can anyone suggest a good tool for Python code profiling? (I am working on Mac OS)
Thanks, Mikhail