Skip to content

Commit

Permalink
Documentation WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 5, 2021
1 parent d40decb commit 379a330
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/docs/testing-and-debugging/pprof.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Pprof

There is a built pprof server to faciliate profiling the program.

Note it does not affect performance unless the server is queried.

We assume Gossamer runs on `localhost` and the Pprof server is listening
on the default `6060` port.

You need to have [Go](https://golang.org/dl/) installed to profile the program.

The easiest way to visualize profiling data is through your browser.

The following commands are available and will show the result at [http://localhost:8000](http://localhost:8000):

```sh
# Check the heap
go tool pprof -http=localhost:8000 http://localhost:6060/debug/pprof/heap
```

0 comments on commit 379a330

Please sign in to comment.