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

Jim Jewett jimjjewett at gmail.com
Tue Oct 29 03:00:34 CET 2013


reset() function:

    Clear traces of memory blocks allocated by Python.

Does this do anything besides clear? If not, why not just re-use the 'clear' name from dicts?

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.

-jJ



More information about the Python-Dev mailing list