2025-07-30 11:57:45 +08:00

534 B

We generate the profile using yappi and export the stats using the pstat format. For instance,


import time
import yappi

from pypot.creatures import PoppyErgoJr
jr = PoppyErgoJr()

yappi.start();time.sleep(100); yappi.stop()
yappi.get_func_stats().save('ergo-jr-rpi2-idle-light-syncloop.prof', type='pstat')

The stats can be visualized using snakeviz.