Skip to content

Commit

Permalink
Profiler documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim committed Jan 3, 2024
1 parent dae364c commit 48e1e2c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,10 @@ The tests can be executed like this:
```
make clean_restart_e2e_test
```

## Profiler
Each service runs a http profiler server if it is configured in `config.yaml`. In order to access it, a connection can be created using the Go `pprof` [tool](https://pkg.go.dev/net/http/pprof). For example to investigate the memory usage
```bash
go tool pprof http://localhost:9999/debug/pprof/allocs
```
Then type `top` to see the functions which consume the most memory. Find more information [here](https://go.dev/blog/pprof).

0 comments on commit 48e1e2c

Please sign in to comment.