super-graph/qcode/pprof_cpu.sh

3 lines
93 B
Bash
Raw Permalink Normal View History

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