Skip to content

Instantly share code, notes, and snippets.

@jms
Created August 20, 2017 17:41
Show Gist options
  • Save jms/db57f4844f3cf4f9a5725125ff13d415 to your computer and use it in GitHub Desktop.
Save jms/db57f4844f3cf4f9a5725125ff13d415 to your computer and use it in GitHub Desktop.
pytest profile-svg
FLASK_CONFIG=test pytest --profile-svg
for i in $(ls *.prof); do gprof2dot -f pstats $i | dot -Tsvg -o $i.svg ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment