super-graph/psql/pprof_mem.sh

3 lines
92 B
Bash
Executable File

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