super-graph/qcode/pprof_mem.sh

3 lines
92 B
Bash
Raw Normal View History

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