Changeset View
Changeset View
Standalone View
Standalone View
doc/functional-tests.md
Show First 20 Lines • Show All 188 Lines • ▼ Show 20 Lines | |||||
``` | ``` | ||||
Note: gdb attach step may require `sudo`. To get rid of this, you can run: | Note: gdb attach step may require `sudo`. To get rid of this, you can run: | ||||
```bash | ```bash | ||||
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope | echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope | ||||
``` | ``` | ||||
Often while debugging rpc calls from functional tests, the test might reach timeout before | |||||
process can return a response. Use `--timeout-factor 0` to disable all rpc timeouts for that particular | |||||
functional test. Ex: `test/functional/test_runner.py wallet_hd --timeout-factor 0`. | |||||
### Benchmarking and profiling with perf | ### Benchmarking and profiling with perf | ||||
An easy way to profile node performance during functional tests is provided | An easy way to profile node performance during functional tests is provided | ||||
for Linux platforms using `perf`. | for Linux platforms using `perf`. | ||||
Perf will sample the running node and will generate profile data in the node's | Perf will sample the running node and will generate profile data in the node's | ||||
datadir. The profile data can then be presented using `perf report` or a graphical | datadir. The profile data can then be presented using `perf report` or a graphical | ||||
tool like [hotspot](https://github.com/KDAB/hotspot). | tool like [hotspot](https://github.com/KDAB/hotspot). | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |