Skip to content

Instantly share code, notes, and snippets.

@AlexMocioi
Created July 15, 2013 09:09
Show Gist options
  • Save AlexMocioi/5998554 to your computer and use it in GitHub Desktop.
Save AlexMocioi/5998554 to your computer and use it in GitHub Desktop.
Profiling GO web app
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