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 penguin_wwy
Recipients pablogsal, penguin_wwy
Date 2021-11-29.17:09:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1638205748.23.0.462297584247.issue45928@roundup.psfhosted.org>
In-reply-to
Content
Thank you for the reminder.

At first, I wanted to analyze the effectiveness of GC through logs.
However, because GC through the stderr output, these logs are mixed in with other output(such as warnings). This make it difficult to handle them automaticaly.

So, i added an `TestIOWrapper` parameter(Not just file streams, but also other io, sockets, buffer and so on) to `set_debug` function in gcmodule.c, to redirect GC logs.

I think this will help developers monitor the GC more easily, for example when they deal with a memory leak.

Of course, the default will remain the same as the previous behavior , log via stderr :)
History
Date User Action Args
2021-11-29 17:09:08penguin_wwysetrecipients: + penguin_wwy, pablogsal
2021-11-29 17:09:08penguin_wwysetmessageid: <1638205748.23.0.462297584247.issue45928@roundup.psfhosted.org>
2021-11-29 17:09:08penguin_wwylinkissue45928 messages
2021-11-29 17:09:08penguin_wwycreate