Created
August 19, 2015 01:05
-
-
Save ngehlenborg/1da407292acadb430489 to your computer and use it in GitHub Desktop.
Yappi profiling in current thread using wall clock time.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import yappi | |
yappi.set_clock_type("wall") | |
yappi.start(builtins=False,profile_threads=False) | |
# code to profile goes here | |
yappi.get_thread_stats().print_all() | |
yappi.stop() | |
yappi.clear_stats() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Requires yappi to be installed:
pip install yappi