@@ -1246,6 +1246,30 @@ func (bp *baseProcessor) cleanupPools(headerHandler data.HeaderHandler) {
12461246 // cleanup all log events
12471247 bp .dataPool .PostProcessTransactions ().Remove (common .PrepareLogEventsKey (executionResultHeaderHash ))
12481248 }
1249+
1250+ if headerHandler .GetRound ()% 50 == 0 {
1251+ go bp .logPoolsSize ()
1252+ }
1253+ }
1254+
1255+ func (bp * baseProcessor ) logPoolsSize () {
1256+ dp := bp .dataPool
1257+
1258+ log .Debug ("logPoolsSize" ,
1259+ "postProcessTxs" , "len" , dp .PostProcessTransactions ().Len (), "size" , dp .PostProcessTransactions ().SizeInBytesContained (),
1260+ "executedMiniBlocksCache" , "len" , dp .ExecutedMiniBlocks ().Len (), "size" , dp .ExecutedMiniBlocks ().SizeInBytesContained (),
1261+ "miniblocks" , "len" , dp .MiniBlocks ().Len (), "size" , dp .MiniBlocks ().SizeInBytesContained (),
1262+ "headers" , "len" , dp .MiniBlocks ().Len (),
1263+ "proofs" , "len" , dp .Proofs ().Len (),
1264+ )
1265+
1266+ txPoolCounts := dp .Transactions ().GetCounts ()
1267+
1268+ log .Debug ("logPoolsSize txPool" ,
1269+ "numTrackedBlocks" , dp .Transactions ().GetNumTrackedBlocks (),
1270+ "numTrackedAccounts" , dp .Transactions ().GetNumTrackedAccounts (),
1271+ "counts" , "id" , txPoolCounts .String (), "total" , txPoolCounts .GetTotal (), "total size" , txPoolCounts .GetTotalSize (),
1272+ )
12491273}
12501274
12511275func (bp * baseProcessor ) cleanupPoolsForCrossShard (
0 commit comments