> New changeset b86cdebe0e97 by Victor Stinner in branch 'default':
> tracemalloc now supports domains
> https://hg.python.org/cpython/rev/b86cdebe0e97
I hate working on huge patches, it's a pain to rebase them. I chose to push a first implementation to unblock the issue #26530 "tracemalloc: add C API to manually track/untrack memory allocations".
I'm interested by your feedback on the C API.
The C implementation can still be changed later.
For example, I chose to push a first implementation which *always* store domain_t in traces keys. Later, I will write a patch to switch from the compact key (Py_uintptr_t) to key using domain (pointer_t) dynamically. |