Re: [Python-Dev] RFC: PEP 454: Add a new tracemalloc module

2013-09-04 Thread Victor Stinner
>> ``trace`` class: >> This class represents debug information of an allocated memory block. >> >> ``size`` attribute: >> Size in bytes of the memory block. >> ``filename`` attribute: >> Name of the Python script where the memory block was allocated, >> ``None`` if unknown. >> ``lin

Re: [Python-Dev] RFC: PEP 454: Add a new tracemalloc module

2013-09-04 Thread Alexander Belopolsky
On Tue, Sep 3, 2013 at 7:27 PM, Victor Stinner wrote: > API > === > > To trace the most Python memory allocations, the module should be > enabled as early as possible in your application by calling > ``tracemalloc.enable()`` function, by setting the ``PYTHONTRACEMALLOC`` > environment variable to