I have a couple of go programs that have a unused inport of
net/http/pprof in them.
import _ "net/http/pprof" ... //http.ListenAndServe("127.0.0.1:6060", nil)
I was wondering what the overhead of this import is in term of CPU and Mem. Aka. Should I remove then in prod (yes), but what would be the impact if I forgot?
Related: what are the exact sideeffects of this import? It registers some http handlers, but does it also inject things in go’s malloc functions?