This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients benjamin.peterson, cstratak, ishcherb, serhiy.storchaka, vstinner
Date 2017-10-09.09:22:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1507540973.58.0.213398074469.issue31692@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, so. I wrote a different PR: PR 3927 adds a new PYTHONSHOWALLOCCOUNT environment variable and write allocations statistics into stderr (rather than stdout) when PYTHONSHOWALLOCCOUNT is set.

The PR also fixes the test suite for COUNT_ALLOCS.

The PR 3927 is much shorter because PYTHONSHOWALLOCCOUNT now has to be defined to dump allocations statistics.

haypo@selma$ git diff 2.7.. --stat
 Doc/using/cmdline.rst                                                       | 7 +++++++
 Lib/test/support/__init__.py                                                | 3 +++
 Lib/test/test_abc.py                                                        | 1 +
 Lib/test/test_gc.py                                                         | 4 +++-
 Lib/test/test_regrtest.py                                                   | 1 +
 Lib/test/test_sys.py                                                        | 5 ++++-
 Lib/test/test_weakref.py                                                    | 1 +
 Misc/NEWS.d/next/Core and Builtins/2017-10-09-11-03-13.bpo-31692.5-bpdk.rst | 4 ++++
 Python/pythonrun.c                                                          | 4 +++-
 9 files changed, 27 insertions(+), 3 deletions(-)
History
Date User Action Args
2017-10-09 09:22:53vstinnersetrecipients: + vstinner, benjamin.peterson, serhiy.storchaka, cstratak, ishcherb
2017-10-09 09:22:53vstinnersetmessageid: <1507540973.58.0.213398074469.issue31692@psf.upfronthosting.co.za>
2017-10-09 09:22:53vstinnerlinkissue31692 messages
2017-10-09 09:22:53vstinnercreate