Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```