Yappi returns weird results

1.2k views Asked by At

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?

1

There are 1 answers

0
Sumer Cip On

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.