go-toml/parse2/profile.sh

6 lines
153 B
Bash
Executable File

#!/bin/bash
go build
ppfile=`cat /tmp/y | ./parse2 2>&1 | grep "cpu profiling enabled" | cut -d, -f2`
go tool pprof -http 0.0.0.0:8888 ./parse2 $ppfile