Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/by-sabbir/go-web-service-profiling
https://github.com/by-sabbir/go-web-service-profiling
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/by-sabbir/go-web-service-profiling
- Owner: by-sabbir
- Created: 2023-12-17T13:18:16.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2023-12-17T15:27:49.000Z (11 months ago)
- Last Synced: 2024-06-21T17:02:28.647Z (5 months ago)
- Language: Go
- Size: 1.35 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Web Service Profiling in Go
## Quick Guide
- Open terminal and execute
```bash
make run
```this will run the webservice.
- To generate load open another terminal and execute
```bash
make test-load
```- To download the profile (cpu/memory)
```bash
make {cpu}/{memory}-profile
```this will record 30 seconds session for the web app.
- To download the trace
```bash
make trace
```this will record 5 seconds session for the web app.
- To view the profile (cpu/memory)
```bash
go tool pprof -http localhost:9999 prof.pb.gz
```- To view the traces
```bash
go tool trace trace.out
```