Debian Codegraph @

script/profile

raw
1 #!/bin/sh
2 set -e
3 PROJDIR=$(cd `dirname $0`/.. && pwd)
4 cd ${PROJDIR}
5
6 PAT="."
7 if [ ! -z "${1}" ]; then
8 PAT="${1}"
9 fi
10
11 go test -bench ${PAT} -benchmem -cpuprofile cpu.out
12 go tool pprof gron.test cpu.out