Created
July 9, 2014 19:06
-
-
Save pedromg/474a23a06d5e44509e95 to your computer and use it in GitHub Desktop.
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
import _ "net/http/pprof" | |
// If the app is not running an http server, one needs to start one: | |
go func() { | |
log.Println(http.ListenAndServe("localhost:8000", nil)) | |
}() | |
// Or else/then its just point the browser to: | |
// http://ip:port/debug/pprof/</code> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment