From a63157edc1c4b91138693b392b58bc738de8d3a9 Mon Sep 17 00:00:00 2001 From: Antoine Amara Date: Tue, 26 Nov 2019 19:38:42 +0100 Subject: [PATCH] pprof: add new page (#3450) --- pages/common/pprof.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/pprof.md diff --git a/pages/common/pprof.md b/pages/common/pprof.md new file mode 100644 index 0000000000..a4f20093a5 --- /dev/null +++ b/pages/common/pprof.md @@ -0,0 +1,24 @@ +# pprof + +> Command-line tool for visualization and analysis of profile data. +> More information: . + +- 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 `pprof` on 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}}`