When you need http pprof:
- Put me together with your main.
- Build with
pprof
added to-tags
. - Add
-X main.PPROF_SEVER=
with a new address to-ldflags
to change the server address.
Make it easy to use http pprof.
When you need http pprof:
pprof
added to -tags
.-X main.PPROF_SEVER=
with a new address to -ldflags
to change the server address.Make it easy to use http pprof.