2020-01-11 20:18:50 +00:00
|
|
|
# PProf Web UI
|
|
|
|
|
2022-09-27 00:20:34 +00:00
|
|
|
[Go pprof profiler web UI](https://github.com/google/pprof).
|
2020-01-11 20:18:50 +00:00
|
|
|
|
2022-09-27 00:20:34 +00:00
|
|
|
You can upload pprof files then view them without installing anything.
|
|
|
|
|
|
|
|
|
|
|
|
you can also share these profiles with other people
|
|
|
|
|
|
|
|
|
2023-04-08 21:03:07 +00:00
|
|
|
Try it: https://pprof.tuxpa.in
|
2020-01-11 20:18:50 +00:00
|
|
|
|
|
|
|
|
2023-10-26 16:50:22 +00:00
|
|
|
## cli tool
|
|
|
|
|
|
|
|
install with `go install tuxpa.in/a/pprofweb@latest`
|
|
|
|
|
|
|
|
```
|
|
|
|
Usage: pprofweb <command>
|
|
|
|
|
|
|
|
Flags:
|
|
|
|
-h, --help Show context-sensitive help.
|
|
|
|
|
|
|
|
Commands:
|
|
|
|
profile (p,prof) <url>
|
|
|
|
run a profile and upload
|
|
|
|
|
|
|
|
upload (u,up) <file>
|
|
|
|
upload a file
|
|
|
|
|
|
|
|
Run "pprofweb <command> --help" for more information on a command.
|
|
|
|
```
|
|
|
|
|
2020-01-11 20:18:50 +00:00
|
|
|
## Run Locally
|
|
|
|
|
|
|
|
docker build . --tag=pprofweb
|
2022-09-27 00:20:34 +00:00
|
|
|
docker run --rm -ti -p 7443:7443 pprofweb
|
2020-01-11 20:18:50 +00:00
|
|
|
|
2022-09-27 00:20:34 +00:00
|
|
|
Open http://localhost:7443/
|
2020-01-11 20:18:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Check that the container works
|
|
|
|
|
|
|
|
docker run --rm -ti --entrypoint=dot pprofweb
|