pprof

Command-line tool for visualization and analysis of profile data.

TLDR

Generate a text report from a specific profiling file, on fibbo binary

>_ pprof -top [./fibbo] [./fibbo-profile.pb.gz]
copy

Generate a graph and open it on a web browser

>_ pprof -svg [./fibbo] [./fibbo-profile.pb.gz]
copy

Run pprof in interactive mode to be able to manually launch pprof on a file

>_ pprof [./fibbo] [./fibbo-profile.pb.gz]
copy

Run a web server that serves a web interface on top of pprof

>_ pprof -http=[localhost:8080] [./fibbo] [./fibbo-profile.pb.gz]
copy

Fetch a profile from an HTTP server and generate a report

>_ pprof [http://localhost:8080/debug/pprof]
copy

Copied to clipboard
free 100$ digital ocean credit