[Python-Dev] PEP 454 (tracemalloc) disable ==> clear?

Kristján Valur Jónsson kristjan at ccpgames.com
Tue Oct 29 11:00:28 CET 2013


A
> 
> 
>     disable() function:
> 
>         Stop tracing Python memory allocations and clear traces of
>         memory blocks allocated by Python.
> 
> I would disable to stop tracing, but I would not expect it to clear out the
> traces it had already captured.  If it has to do that, please put in some sample
> code showing how to save the current traces before disabling.

I was thinking something similar.  It would be useful to be able to "pause" and "resume"
if one is doing any analysis work in the live environment.  This would reduce the
need to have "Filter" objects. 

K



More information about the Python-Dev mailing list