prof

module
v1.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2022 License: Apache-2.0

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,
	)
}

Directories

Path Synopsis
cmd
internal
biz
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL