https://github.com/matteo-gz/prof
golang pprof WebUI
https://github.com/matteo-gz/prof
go golang pprof webui
Last synced: 5 months ago
JSON representation
golang pprof WebUI
- Host: GitHub
- URL: https://github.com/matteo-gz/prof
- Owner: matteo-gz
- License: apache-2.0
- Created: 2022-07-20T07:31:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-08-11T13:05:07.000Z (almost 2 years ago)
- Last Synced: 2024-08-11T14:25:11.081Z (almost 2 years ago)
- Topics: go, golang, pprof, webui
- Language: Go
- Homepage:
- Size: 473 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Prof
The web ui for golang pprof
### Requirements
- golang(pprof trace)
- graphviz
### Quick Use
```
go install github.com/matteo-gz/prof/cmd/prof@latest
prof
```
### 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 -log=./logs
```
## 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,
)
}
```
