[issue18874] Add a new tracemalloc module to trace memory allocations
STINNER Victor
report at bugs.python.org
Sat Nov 23 02:37:31 CET 2013
STINNER Victor added the comment:
Oh, Jim Jewett found a bug: if set_traceback_limit() is called while tracemalloc is tracing, two tracebacks are seen different because their length is different, whereas the full traceback would be the same.
To avoid this issue, I propose to add an optional nframe parameter to the set_traceback_limit() function.
With this API, it may be possible to remove the arbitrary limitation of 100 frames by allocating a buffer in start().
----------
Added file: http://bugs.python.org/file32789/start_nframe.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18874>
_______________________________________
More information about the Python-bugs-list
mailing list