Prof
The web ui for golang pprof
Web UI
Requirements
- golang(pprof trace)
- graphviz
How to use it
cp env.yaml.example env.yaml
go build -o prof cmd/prof/main.go
./prof -c env.yaml
Via
- docker-compose
https://github.com/matteo-gz/prof_compose
How to run
Function
Upload File
#upload
# .trace
trace.trace
# .symbol .cmdline
symbol.symbol
cmdline.cmdline
# other
Single CURL
#input
http://127.0.0.1:8201/internal/debug/pprof/profile?seconds=5
#output
CURL: http://127.0.0.1:8201/internal/debug/pprof/profile?seconds=5
Batch CURL
#input
http://127.0.0.1:8201/internal/debug/pprof?seconds=5
# output
CURL: http://127.0.0.1:8201/internal/debug/pprof/threadcreate
CURL: http://127.0.0.1:8201/internal/debug/pprof/cmdline
CURL: http://127.0.0.1:8201/internal/debug/pprof/allocs
CURL: http://127.0.0.1:8201/internal/debug/pprof/profile ?seconds=5
CURL: http://127.0.0.1:8201/internal/debug/pprof/symbol
CURL: http://127.0.0.1:8201/internal/debug/pprof/trace ?seconds=5
CURL: http://127.0.0.1:8201/internal/debug/pprof/goroutine
CURL: http://127.0.0.1:8201/internal/debug/pprof/block
Cat File list
Cat Person history