Skip to content

Instantly share code, notes, and snippets.

@sgrankin
Created January 20, 2014 07:31
Show Gist options
  • Save sgrankin/8516347 to your computer and use it in GitHub Desktop.
Save sgrankin/8516347 to your computer and use it in GitHub Desktop.
#!/bin/sh
OUT="${1%.*}.pdf"
$(dirname "$0")/gprof2dot.py -f pstats "$@" | dot -Tpdf > $OUT
open $OUT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment