goparsify/scripts/memprofile.sh

8 lines
132 B
Bash
Raw Permalink Normal View History

2017-08-13 11:27:41 +02:00
#!/bin/bash
set -eu
go build ./json/profile/json.go
./json.exe -memprofile mem.out
go tool pprof --inuse_objects json.exe mem.out