Re: [Numpy-discussion] Memory allocation of arrays and tracemalloc

2015-01-15 Thread Nathaniel Smith
On Thu, Jan 15, 2015 at 5:01 PM, Antoine Pitrou wrote: > > Hello, > > I see that the PyDataMem_* APIs call malloc()/free()/etc. directly, > instead of going through PyMem_Malloc, etc. This means the memory > allocated by those APIs won't be seen by tracemalloc. Is it deliberate? > Am I missing som

[Numpy-discussion] Memory allocation of arrays and tracemalloc

2015-01-15 Thread Antoine Pitrou
Hello, I see that the PyDataMem_* APIs call malloc()/free()/etc. directly, instead of going through PyMem_Malloc, etc. This means the memory allocated by those APIs won't be seen by tracemalloc. Is it deliberate? Am I missing something? Regards Antoine. ___