Created
September 10, 2020 04:11
-
-
Save teru01/58f448356d22bff4ab63534070c66140 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd "${0%/*}" | |
curl -s http://localhost:<port>/debug/pprof/profile?seconds=60 > $1/cpu.pprof | |
go tool pprof -png $1/cpu.pprof > $1/cpu.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment