-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |