Skip to content

Instantly share code, notes, and snippets.

@themperek
Created May 24, 2016 09:26
Show Gist options
  • Save themperek/2545bf3c486be706e09cbcf8372f6fd0 to your computer and use it in GitHub Desktop.
Save themperek/2545bf3c486be706e09cbcf8372f6fd0 to your computer and use it in GitHub Desktop.
yappi.start()
import yappi
# code
f = open('workfile'+str(self.kind), 'w')
yappi.get_func_stats().print_all(out=f)
yappi.get_thread_stats().print_all()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment