Discover Packages
github.com/matteo-gz/prof
module
Version:
v1.0.7
Opens a new window with list of versions in this module.
Published: Jul 31, 2022
License: Apache-2.0
Opens a new window with license information.
README
README
¶
Prof
The web ui for golang pprof
Requirements
golang(pprof trace)
graphviz
Start it
cp env.yaml.example env.yaml
go build -o prof cmd/prof/main.go cmd/prof/wire_gen.go
# start server
./prof -c env.yaml
# start server another way
./prof -port=8201 -port2=8202 env=prod -dir=./storage
Via
docker-compose https://github.com/matteo-gz/prof_compose
How to Run
# demo
# your golang service
package main
import (
"net/http"
_ "net/http/pprof"
)
func main() {
_ = http.ListenAndServe(
"0.0.0.0:6060",
nil,
)
}
Expand ▾
Collapse ▴
Directories
¶
Click to show internal directories.
Click to hide internal directories.