Last active
February 10, 2024 07:53
-
-
Save Susensio/efd9422e14556dff4122434c3603aff3 to your computer and use it in GitHub Desktop.
Python profiling with QCacheGrind
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
# Profile with cProfile python module and save to output | |
python -m cProfile -o output.cprof script.py | |
# Transform into tree format for QCacheGrind | |
pyprof2calltree -i output.cprof -o callgrind.cprof | |
# Open QCacheGrind and load callgrind.cprof file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment