Reputation: 13321
I am running yappi python profiler in a multi-threaded process an I get weird results when printing with yappi.print_stats(). Some methods repeat more than once, in each of the lines they show different ttot
and ncalls
. Some methods surprisingly show tsub
equal to 0, where they certainly should not.
Could you explain these phenomena?
Upvotes: 2
Views: 1344
Reputation: 169
This issue is probably fixed in the latest repository head. Other than that, yappi does not accumulate time.sleep() or any other blocking calls timing output if operating in CPU clock mode. See the get_clock_type() api of yappi.
Upvotes: 2