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 njs
Recipients njs, pitrou, vstinner
Date 2016-03-18.16:58:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There are other leakable resources besides heap and GPU memory -- shmem segments and file descriptors are two that I thought of earlier, but there are probably others too. (Note that not all file descriptors are associated with a python file object.) I guess one could hack most of these things into pointer bit tricks somehow, but I don't really see the appeal myself :-). It's fine for an internal implementation trick, but a very pythonic public api...

> Tracemalloc doesn't give access to pointers in its API, so it shouldn't matter.

This is actually a problem with this scheme... One would like to be able to get separate statistical reports for different resources.

Also, tracemalloc is awesome (really), but there are potentially other consumers of the hookable allocation scheme too that might choose to expose more or less information; we shouldn't forget about them entirely :-)
Date User Action Args
2016-03-18 16:58:58njssetrecipients: + njs, pitrou, vstinner
2016-03-18 16:58:58njssetmessageid: <>
2016-03-18 16:58:58njslinkissue26530 messages
2016-03-18 16:58:58njscreate