Created
July 15, 2013 09:09
-
-
Save AlexMocioi/5998554 to your computer and use it in GitHub Desktop.
Profiling GO web app
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
in header-ul cu import trebuie adaugata linia: | |
_ "net/http/pprof" | |
dupa care se pot accesa urmatoarele url-uri (sunt accesibile si din afara): | |
http://localhost:8081/debug/pprof/ - centralizatorul cu situatia de facto | |
http://localhost:8081/pprof/heap | |
http://localhost:8081/pprof/profile | |
http://localhost:8081/pprof/block | |
pentru analiza cu alte tool-uri (spre ex go tool pprof [url]) se pot folosi acelasi url-uri | |
go tool pprof http://localhost:8081/debug/pprof/profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment