mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 22:53:39 +00:00
Update cheatsheets
This commit is contained in:
29
pprof
Normal file
29
pprof
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# pprof
|
||||
|
||||
> Command-line tool for visualization and analysis of profile data.
|
||||
> More information: <https://github.com/google/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 `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}}`
|
||||
Reference in New Issue
Block a user