0

I ues pprof -http to generate profiling result all the time, but every time i need profile.pb.gz i need go to the http web to download it. what i did Is that anyway to generate profile.pb.gz with local binary,but no need to using pprof -http.

kido G
  • 1
  • 1
  • I think you can just download the file directly from the pprof endpoint of your service? No need to invoke the `pprof` tool. – ZeissS Apr 03 '23 at 23:10

1 Answers1

-1

Just use the following command to download a file directly

go tool pprof -proto source

You can also refer this documentation on how to use pprof tool differently according to your use case.