Skip to content

Instantly share code, notes, and snippets.

@michalmonday
Last active January 24, 2023 11:08
Show Gist options
  • Save michalmonday/08002fbfbb7da41500233f54ab9eff35 to your computer and use it in GitHub Desktop.
Save michalmonday/08002fbfbb7da41500233f54ab9eff35 to your computer and use it in GitHub Desktop.
A command to profile a python script
# py -3 -m pip install snakeviz

# on Windows:
py -3 -m cProfile -o my_script.profile my_script.py && snakeviz.exe my_script.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment