Nathaniel Smith added the comment:

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 :-)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26530>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to