At
|
## Capturing pprof data with `lnd` |
|
|
|
`lnd` has a built-in feature which allows you to capture profiling data at runtime using [pprof](https://golang.org/pkg/runtime/pprof/), a profiler for Go. The profiler has negligible performance overhead during normal operations (unless you have explicitly enabled CPU profiling). |
|
|
|
To enable this ability, start `lnd` with the `--profile` option using a free port or add `profile=9736` to your `lnd.conf`. |
|
|
|
``` |
|
⛰ lnd --profile=9736 |
|
``` |
|
|
use of the profiler is mentioned, but the information is out of date.
See
lightningnetwork/lnd@448193b
for the updated flags.
At
docs.lightning.engineering/lightning-network-tools/lnd/debugging_lnd.md
Lines 72 to 81 in 7ae1b8f
use of the profiler is mentioned, but the information is out of date.
See
lightningnetwork/lnd@448193b
for the updated flags.