-
Notifications
You must be signed in to change notification settings - Fork 19
How to use Valgrind
Matus Kysel edited this page Jun 10, 2021
·
1 revision
For memory related analysis just run something like:
valgrind --leak-check=full \
--suppressions=valgrind.supp \
--show-leak-kinds=all \
--track-origins=yes \
--verbose \
--log-file=valgrind-out.txt \
./build/bin/taraxad --conf_taraxa ./config_testnet.json
Details:
--suppressions=valgrind.supp
-> this should be path to file in taraxa-node repo (this will filter out false-postive)
--gen-suppressions=all
-> if you use this valgrind will generate suppression, that you na later copy to *.supp file, so they will be filtered-out