[BTC-dev] (EXPERIMENTAL) IgProf Hooks Apparatus !

Stanislav Datskovskiy stas at loper-os.org
Fri May 29 00:14:05 UTC 2015


Name: msg_s.txt
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150528/msg_s_64e4fbe69223fa15e43736578883bf30e9de7277.txt>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

This patch enables the use of the very spiffy heap profiler 'IgProf.' [1]

It ought to apply cleanly, regardless of which 0.5.3.x
variant you might have.

I am presently testing with:

nohup igprof -d -mp -z -o igprof.mp.gz ./bitcoind -profileheap >& igtest.mp.log &
                                                    ^
                                                    |
                                                    \
                                                     - must have this flag

To disgorge a heap profile snapshot at a given moment:

./bitcoind profileheapdump heapdumpfilename

Please read IgProf manual to learn what to do with this.

Warning: -dl required in linker flags for this to work !!!
The patch does this. If you have a peculiar makefile where this part
did not apply cleanly, apply it by hand.

[1] http://igprof.org/running.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBCgAGBQJVZ68CAAoJELmCKKABq//HQJgH/1HGsRv6eeDwRk5ZOXV43OM1
q7/hmrZF3ylT/kPohTzj5v3U2VVRMlvODXjR7IerbLcMHf+shm9Jx4Ha5Hh+ljFg
arY/+PK9SadMdmuiU0BGb6Dor/seQVqI7mMyaeh+7/O+doPwy5PZo0RwBqVw2d37
fagO8pWF0zGk8AquVALG/7LW2MM6Z7TTmVMYhHlJs8sQuURMc7i72eMipyqmm5q5
ymVtWxhOmmi+rPiYW+4G66EgVsjY9pPJ3pm22RiA3x0kIdkikTLi2l7BeBCIaDb6
TzKC4JamAb9fHD5jFTS1320UBNrfpA1VzoUbBckp4cakWcoi7czKYiXbGU5lPxI=
=bo9A
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciilifeform_igprof_hooks.patch
Type: text/x-patch
Size: 3861 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150528/asciilifeform_igprof_hooks_16c016b27fab3ed6278c543862da5363e86d1217.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: asciilifeform_igprof_hooks.patch.sig
Type: application/octet-stream
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150528/asciilifeform_igprof_hooks_3044efbd71976cb70c819d391bdce5a77a0bea7a.patch.sig>


More information about the BTC-dev mailing list