Skip to content

Commit

Permalink
Merge pull request #230 from bitcoin-sv/docu/profiler
Browse files Browse the repository at this point in the history
Profiler documentation
  • Loading branch information
boecklim authored Jan 8, 2024
2 parents 339a0a2 + 48e1e2c commit c6a8ab2
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 c6a8ab2

Please sign in to comment.