Skip to content

sbodwyer/golang-memory-leaks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Run the server

go run main.go

Note: all endpoints are on port 8080

Call an endpoint

eg curl http://localhost:8080/myLovelyFunction1

Collect a heap

curl http://localhost:8080/debug/pprof/heap > "heap-$(date +%T).out"

Diff two heaps on your browser

go tool pprof -http=:8802 -diff_base <path to base heap file> <path to the heap file you wish to compare>

About

This was created for learning purposes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages