core-lightning/devtools
Rusty Russell 1cbdb9cc12 devtools/taldump-analyze.py: script to analyze tal_dump() output.
Example output on my production machine, running v0.10.2rc1-9-g3d8293d:

```
Top sizes by name
backtrace: 1172021248 bytes, 4578208 items
wallet/txfilter.c:111:struct bitcoin_outpoint: 49584636 bytes, 1377351 items
lightningd/plugin.c:1651:char[]: 17261056 bytes, 16 items
lightningd/log.c:282:char[]: 16653908 bytes, 838086 items
wally_tal: 13390257 bytes, 122503 items
lightningd/log.c:250:struct log_entry[]: 7340032 bytes, 1 items
lightningd/jsonrpc.c:939:char[]: 6979648 bytes, 214 items
lightningd/log.c:440:u8[]: 3278359 bytes, 1338 items
common/memleak.c:51:struct memleak_notleak: 2216763 bytes, 2216763 items
Top sizes by path
['']: 2579337788 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd']: 831485962 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'wallet/wallet.c:77:struct wallet']: 756169631 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'wallet/wallet.c:77:struct wallet', 'wallet/txfilter.c:133:struct outpointfilter']: 756166227 bytes, 2 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'wallet/wallet.c:77:struct wallet', 'wallet/txfilter.c:133:struct outpointfilter', 'wallet/txfilter.c:134:struct outpointset']: 706581191 bytes, 2 items
['', 'ccan/ccan/tal/link/link.c:40:struct linkable']: 457580181 bytes, 1 items
['', 'ccan/ccan/tal/link/link.c:40:struct linkable', 'lightningd/log.c:236:struct log_book']: 430307262 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'lightningd/chaintopology.c:1061:struct chain_topology']: 48054597 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'lightningd/chaintopology.c:1061:struct chain_topology', 'lightningd/chaintopology.c:853:struct block']: 47076437 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'lightningd/chaintopology.c:1061:struct chain_topology', 'lightningd/chaintopology.c:853:struct block', 'bitcoin/block.c:210:struct bitcoin_tx *[]']: 47034285 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'lightningd/plugin.c:77:struct plugins']: 17569217 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'lightningd/plugin.c:77:struct plugins', 'lightningd/plugin.c:246:struct plugin', 'lightningd/plugin.c:1651:char[]']: 16784384 bytes, 5 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'lightningd/chaintopology.c:1061:struct chain_topology', 'lightningd/chaintopology.c:853:struct block', 'bitcoin/block.c:210:struct bitcoin_tx *[]', 'bitcoin/tx.c:605:struct bitcoin_tx']: 13730127 bytes, 452 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'lightningd/jsonrpc.c:1189:struct jsonrpc']: 7745890 bytes, 1 items
['', 'ccan/ccan/tal/link/link.c:40:struct linkable', 'lightningd/log.c:236:struct log_book', 'lightningd/log.c:250:struct log_entry[]']: 7340032 bytes, 1 items
['', 'lightningd/lightningd.c:103:struct lightningd', 'lightningd/chaintopology.c:1061:struct chain_topology', 'lightningd/chaintopology.c:853:struct block', 'bitcoin/block.c:210:struct bitcoin_tx *[]', 'bitcoin/tx.c:605:struct bitcoin_tx', 'wally_tal']: 4480328 bytes, 166 items
['', 'tmpctx']: 0 bytes, 1 items
```
2021-11-27 10:38:13 +10:30
..
.gitignore sort alphabetically 2021-06-28 14:43:47 +09:30
blindedpath.c channeld: rename onion_message to obs_onion_message. 2021-09-22 06:44:26 +09:30
bolt11-cli.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
bolt12-cli.c BOLT 12: switch invoice_request/invoice to singular chain field. 2021-10-08 13:47:30 +02:00
changelog.py devtools: add experimental section. 2021-04-07 14:34:39 +09:30
checkchannels.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
clean_topo.c devtools/topology: new tool to explore lightning topology. 2020-08-28 10:56:50 +09:30
clean_topo.h devtools/topology: new tool to explore lightning topology. 2020-08-28 10:56:50 +09:30
create-gossipstore.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
credit tools: Pretty print the credits 2021-01-26 15:45:13 +01:00
decode-iolog devtools/decode-iolog: tool to decode hexstrings from io logging. 2019-05-31 18:36:38 +02:00
decodemsg.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
dump-gossipstore.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
encodeaddr.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
features.c devtools/features: tool to convert feature bitmap to names. 2021-09-23 15:02:05 +02:00
gossipwith.c torv2: remove support for advertizing and connecting. 2021-11-14 18:49:46 +01:00
lightning-checkmessage.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
Makefile devtools/features: tool to convert feature bitmap to names. 2021-09-23 15:02:05 +02:00
mkclose.c common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
mkcommit.c lightningd: new option for htlc dust limit 2021-10-23 12:59:13 +02:00
mkencoded.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
mkfunding.c common: use bitcoin_outpoint. 2021-10-15 12:09:36 +02:00
mkgossip.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
mkquery.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
onion.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
print_wire.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
print_wire.h Remove varint typedef for bigsize 2020-09-23 16:30:36 +09:30
reduce-includes.sh devtools/reduce-includes.sh: brute-force script to remove includes. 2021-09-17 09:43:22 +09:30
route.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30
sql-rewrite.py db: turn generated queries array into a simple hash table. 2021-11-17 10:51:48 +10:30
taldump-analyze.py devtools/taldump-analyze.py: script to analyze tal_dump() output. 2021-11-27 10:38:13 +10:30
topology.c cleanup: remove unneeded includes in C files. 2021-09-17 09:43:22 +09:30