dash/contrib/auto_gdb
dustinface ae506bae66
refactor: PrivateSend -> CoinJoin + Move the tab (#4038)
* qt|wallet|privatesend: Rename PrivateSend to CoinJoin in GUI strings

* qt: Move CoinJoin next to Transactions

* qt: Adjust status tip of privateSendCoinsMenuAction

Co-authored-by: thephez <thephez@users.noreply.github.com>

* rename: privateSend -> coinJoin

* rename: privatesend -> coinjoin

* rename: PrivateSend -> CoinJoin

* rename: use_ps -> use_cj

* rename: PRIVATESEND -> COINJOIN

* rename: privatesend -> coinjoin for files and folders

* refactor: Re-order coinjoin files in cmake/make files

* refactor: Re-order coinjoin includes where it makes sense

* test: Update lint-circular-dependencies.sh

* Few cleanups

* test: test/coinjoin_tests.cpp -> wallet/test/coinjoin_test.cpp

* s/AdvancedPSUI/AdvancedCJUI/g

* s/privateSentAmountChanged/coinJoinAmountChanged/g

* wallet: Rename "ps_salt" backwards compatible

* Minimal PrivateSend -> CoinJoin migration for settings and cmd-line

* wallet: Fix privatesendrounds -> coinjoinrounds migration

* qt: Migrate nPrivateSendAmount -> nCoinJoinAmount

* `-coinjoindenoms` never existed

* Migrate all PS options/settings

* rpc: Formatting only

* qt: Make Send/CoinJoin tabs a bit more distinguishable

Co-authored-by: thephez <thephez@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
2021-03-17 18:36:11 -04:00
..
common_helpers.py Merge #12987: tests/tools: Enable additional Python flake8 rules for automatic linting via Travis 2020-07-22 12:12:46 -05:00
dash_dbg.sh More of 13510 2020-12-18 12:55:45 -06:00
debug.gdb refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
log_size.py Merge #12987: tests/tools: Enable additional Python flake8 rules for automatic linting via Travis 2020-07-22 12:12:46 -05:00
README.md
simple_class_obj.py refactor: PrivateSend -> CoinJoin + Move the tab (#4038) 2021-03-17 18:36:11 -04:00
stl_containers.py Merge #12987: tests/tools: Enable additional Python flake8 rules for automatic linting via Travis 2020-07-22 12:12:46 -05:00
test_used_size.gdb
used_size.py Merge #12987: tests/tools: Enable additional Python flake8 rules for automatic linting via Travis 2020-07-22 12:12:46 -05:00

Contents

This directory contains tools to automatically get data about the memory consumption by some objects in dashd process with the help of GDB debugger.

dash_dbg.sh

This shell script attaches GDB to the running dashd process (should be built with debug info), executes debug.gdb script and detaches. By default it uses testnet settings, see script comments to attach it to mainnet dashd.

debug.gdb

Contains debugger instructions to execute during attach: loads python code and executes it for the objects we want to investigate.

log_size.py

Contains definition of the gdb command log_size. After this script loads it can be called from gdb command line or other gdb scripts. Command params: log_size arg0 arg1 arg0 - name of object whose memory will be written in log file arg1 - name of the log file Example:

log_size mnodeman "memlog.txt"

used_size.py

Contains definition of the gdb command used_size. After loading of this script it can be called from gdb command line or other gdb scripts. Command params: used_size arg0 arg1 arg0 - variable to store memory used by the object arg1 - name of object whose memory will be calculated and stored in the first argument Example:

>(gdb) set $size = 0
>(gdb) used_size $size mnodeman
>(gdb) p $size

stl_containers.py

Contains helper classes to calculate memory used by the STL containers (list, vector, map, set, pair).

simple_class_obj.py

Contains a helper class to calculate the memory used by an object as a sum of the memory used by its fields. All processed objects of such type are listed in the this file, you can add new types you are interested in to this list. If a type is not listed here, its size is the return of sizeof (except STL containers which are processed in stl_containers.py).

common_helpers.py

Several helper functions that are used in other python code.