'pprof how to get profile.pb.gz without using pprof -http
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.
Solution 1:[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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Kushagra Srivastava |