flâneur — a map of the web's best reading

Profiling Go programs with pprof

jvns.ca · 2,074 words · saved by 1 readers

Profiling Go programs with pprof

Last week me and my cool coworker Josh were debugging some memory problems in a Go program using pprof . There's a bunch of pprof documentation on the internet but I found a few things confusing so here are some notes so I can find them easily. First - when working with pprof it's good to be running a recent version of Go! For example Go 1.8 adds mutex profiles so you can see mutex contention. in this post I'll link to the useful pprof resource I found explain what a pprof profile is give an example of how to look at a heap profile of a Go program explain a few things about the heap profiler w

Explore this link on the map →

saved by

related reading