$ ./python-gc -c 'import asyncio,sys; sys._debugmallocstats()'
master:
# bytes in allocated blocks = 4,011,368
# bytes in available blocks = 136,640
50 unused pools * 4096 bytes = 204,800
# bytes lost to pool headers = 49,824
# bytes lost to quantization = 53,816
# bytes lost to arena alignment = 0
Total = 4,456,448
patched:
# bytes in allocated blocks = 3,852,432
# bytes in available blocks = 132,664
27 unused pools * 4096 bytes = 110,592
# bytes lost to pool headers = 47,856
# bytes lost to quantization = 50,760
# bytes lost to arena alignment = 0
Total = 4,194,304 |