I am trying to find out why some function is taking a long time to complete.
I am using the profiler like this:
ipdb> import profile
ipdb> profile.runctx('report.generateOutput()', globals(), locals())
1 function calls in 40.783 CPU seconds
Ordered by: standard name
ncalls tottime percall cumtime percall filename:lineno(function)
0 0.000 0.000 profile:0(profiler)
1 40.783 40.783 40.783 40.783 profile:0(report.generateOutput())
As you can see, that's not really of much use.
What I need is some detailed information about where all the time is being spent, what am I missing here?