super-graph/psql/pprof_cpu.sh

3 lines
93 B
Bash
Executable File

#!/bin/sh
go test -bench=. -benchmem -cpuprofile cpu.out -run=XXX
go tool pprof -cum cpu.out