How to log sizes of each block
What you can do it traverse back from the chain tip via RPC:


call getbestblockhash (RPC)
Use blockhash to call getblock (RPC)
Read size -> store it somewhere (CSV file, etc.)
Read previousblockhash and use it as blockhash for getblock
Goto step 2