2023-03-09 01:12:04 +00:00
|
|
|
# ezprof
|
|
|
|
|
2023-03-09 01:30:13 +00:00
|
|
|
Host pprof at localhost:8888. In any Go file, put:
|
2023-03-09 01:12:04 +00:00
|
|
|
|
|
|
|
```go
|
2023-03-09 01:30:13 +00:00
|
|
|
import "git.tebibyte.media/sashakoshka/ezprof/ez"
|
|
|
|
|
|
|
|
func main () {
|
|
|
|
...
|
|
|
|
ez.Prof()
|
|
|
|
...
|
|
|
|
}
|
2023-03-09 01:12:04 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
And you will be able to connect to your program with the pprof tool.
|