Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muroon/pprof_sample
https://github.com/muroon/pprof_sample
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/muroon/pprof_sample
- Owner: muroon
- Created: 2020-06-26T12:12:13.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-05T11:33:31.000Z (over 4 years ago)
- Last Synced: 2023-03-10T00:09:12.278Z (over 1 year ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pprof_sample
## command
### start listen server
```
go run endpoint/http_init/main.go
```You can choose [another endpoint](https://github.com/muroon/pprof_sample/tree/master/endpoint) without http_init.
### send requests
```
for i in `seq 1 1000`; do curl http://127.0.0.1:8080/hello; done
```### pprof
```
go tool pprof -http=":22222" http://127.0.0.1:8080/debug/pprof/profile
```## reference
https://stackoverflow.com/questions/19591065/profiling-go-web-application-built-with-gorillas-mux-with-net-http-pprof