[Python-Dev] Free lists

Serhiy Storchaka storchaka at gmail.com
Sun May 10 08:22:36 CEST 2015


On 10.05.15 02:25, Ian Cordasco wrote:
> Can you share how you gathered them so someone could run them on a
> 64-bit build?

This is quick and dirty patch. It generates 8 GB log file!

patch --merge -p1 <PyObject_INIT_stat.diff
make -s -j2
./python -Wd -m test.regrtest -w -uall 2>PyObject_INIT.log
python3 PyObject_INIT_stat.py <PyObject_INIT.log >PyObject_INIT.stat

Perhaps compiling with COUNT_ALLOCS will produce similar statistic for 
types (but without statistics for sizes) and should be much faster.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PyObject_INIT_stat.diff
Type: text/x-patch
Size: 952 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150510/e0d035ad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PyObject_INIT_stat.py
Type: text/x-python
Size: 1090 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150510/e0d035ad/attachment.py>


More information about the Python-Dev mailing list