18 Jun
2013
18 Jun
'13
1:03 a.m.
2013/6/16 Antoine Pitrou <solipsis@pitrou.net>:
On Sun, 16 Jun 2013 01:48:06 +0200 Victor Stinner <victor.stinner@gmail.com> wrote:
I just create the issue http://bugs.python.org/issue18227: "Use Python memory allocators in external libraries like zlib or OpenSSL".
Is it possible to detect if Python is used as a standalone application (the classic "python" program) or if Python is embedded? If it is possible, we can modify the "global" memory allocators of a library.
The question is why you want to do so, not how/whether to do it.
I want to be able to track the memory usage of all Python memory, even in external libraries, and/or use a custom memory allocator, even in external libraries. Victor