profile.sh 258 B

12345678
  1. #!/usr/bin/env bash
  2. go test -run="^$" -bench="Range" -benchmem -c -cpuprofile=./pprof.out
  3. go test -run="^$" -bench="Range" -benchmem -cpuprofile=./pprof.out
  4. go tool pprof --pdf --focus="$1" jet.test pprof.out >> out.pdf
  5. rm jet.test
  6. rm pprof.out
  7. open out.pdf