Last active
September 27, 2018 19:44
-
-
Save comtom/45da8ac078173dc7cd6bc150157322a7 to your computer and use it in GitHub Desktop.
1.sh
This file contains hidden or 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 | |
go test -cpuprofile cpu.prof -memprofile mem.prof -bench . | |
pprof -http=:6060 -alloc_objects mem.prof | |
pprof -http=:6060 cpu.prof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment