mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
82016e4978
Co-authored-by: Ivan Baluta <50071699+ivanbaluta@users.noreply.github.com>
730 B
730 B
pprof
Visualize and analyze profiling data. More information: https://github.com/google/pprof/tree/main/doc#pprof.
- Generate a text report from a specific profiling file, on fibbo binary:
pprof -top {{./fibbo}} {{./fibbo-profile.pb.gz}}
- Generate a graph and open it on a web browser:
pprof -svg {{./fibbo}} {{./fibbo-profile.pb.gz}}
- Run pprof in interactive mode to be able to manually launch
pprofon a file:
pprof {{./fibbo}} {{./fibbo-profile.pb.gz}}
- Run a web server that serves a web interface on top of
pprof:
pprof -http={{localhost:8080}} {{./fibbo}} {{./fibbo-profile.pb.gz}}
- Fetch a profile from an HTTP server and generate a report:
pprof {{http://localhost:8080/debug/pprof}}