Created
November 13, 2018 17:43
-
-
Save 4383/e6469181ce2e16258dffbc664850f514 to your computer and use it in GitHub Desktop.
debug with kcachegrind
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 cProfile | |
pr = cProfile.Profile() | |
pr.enable() | |
# execute python code to profile | |
print("test") | |
pr.disable() | |
pr.dump_stats("/tmp/debug.cprof") |
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
pyprof2calltree -k -i /tmp/debug.prof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment