doc: update developer notes wrt --enable-debug and DEBUG_LOCKCONTENTION

This commit is contained in:
Jon Atack 2022-04-04 13:13:42 +02:00
parent 345647c4da
commit bd5dbc30db

View File

@ -394,8 +394,10 @@ Defining `DEBUG_LOCKCONTENTION` adds a "lock" logging category to the logging
RPC that, when enabled, logs the location and duration of each lock contention RPC that, when enabled, logs the location and duration of each lock contention
to the `debug.log` file. to the `debug.log` file.
To enable it, run configure with `-DDEBUG_LOCKCONTENTION` added to your The `--enable-debug` configure option adds `-DDEBUG_LOCKCONTENTION` to the
CPPFLAGS, e.g. `CPPFLAGS="-DDEBUG_LOCKCONTENTION"`, then build and run bitcoind. compiler flags. You may also enable it manually for a non-debug build by running
configure with `-DDEBUG_LOCKCONTENTION` added to your CPPFLAGS,
i.e. `CPPFLAGS="-DDEBUG_LOCKCONTENTION"`, then build and run bitcoind.
You can then use the `-debug=lock` configuration option at bitcoind startup or You can then use the `-debug=lock` configuration option at bitcoind startup or
`bitcoin-cli logging '["lock"]'` at runtime to turn on lock contention logging. `bitcoin-cli logging '["lock"]'` at runtime to turn on lock contention logging.