[issue26530] tracemalloc: add C API to manually track/untrack memory allocations
Antoine Pitrou
report at bugs.python.org
Thu Sep 1 10:03:01 EDT 2016
Antoine Pitrou added the comment:
Which patch are we talking about? In tracemalloc_track-3.patch, I see:
+ If memory block is already tracked, update the existing trace. */
+PyAPI_FUNC(int) _PyTraceMalloc_Track(void *ptr, size_t size);
+
+/* Untrack an allocated memory block in the tracemalloc module.
+ Do nothing if the block was not tracked.
+
+ Do nothing if tracemalloc is not tracing Python memory allocations. */
+PyAPI_FUNC(void) _PyTraceMalloc_Untrack(void *ptr);
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26530>
_______________________________________
More information about the Python-bugs-list
mailing list