Skip to content

Commit 8bd126c

Browse files
committed
More documentation on pprof options
1 parent b1a8eb6 commit 8bd126c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/docs/usage/command-line.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ The global flags can be used in conjunction with any Gossamer command
3131
--memprof File to write memory profile to
3232
--name value Node implementation name
3333
--rewind value Rewind head of chain by given number of blocks
34+
--pprofserver Enable or disable the pprof HTTP server
35+
--pprofaddress pprof HTTP server listening address, if it is enabled.
36+
--pprofblockrate pprof block rate. See https://pkg.go.dev/runtime#SetBlockProfileRate.
37+
--pprofmutexrate profiling mutex rate. See https://pkg.go.dev/runtime#SetMutexProfileFraction.
3438
```
3539

3640
### Local flags

docs/docs/usage/configuration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ log = " | trace | debug | info | warn | error | crit"
1717
cpuprof = "~/cpuprof.out"
1818
memprof = "~/memprof.out"
1919
name = "gssmr"
20+
pprofserver = false
21+
pprofaddress = ":6060"
22+
pprofblockrate = 0
23+
pprofmutexrate = 0
2024

2125
[log]
2226
core = " | trace | debug | info | warn | error | crit"

0 commit comments

Comments
 (0)