numpy could implement __sizeof__
On Mon, Apr 26, 2010 at 12:16 PM, David Cournapeau <[email protected]>wrote: > On Mon, Apr 26, 2010 at 7:57 PM, Dag Sverre Seljebotn > <[email protected]> wrote: > > I'd like to profile the memory usage of my application using tools like > > e.g. Heapy. However since NumPy arrays are allocated in C they are not > > tracked by Python memory profiling. > > > > Does anybody have a workaround to share? I really just want to track a > > few arrays in a friendly way from within Python (I am aware of the > > existance of C-level profilers). > > I think heapy has some hooks so that you can add support for > extensions. Maybe we could provide a C API in numpy to make this easy, > > David > _______________________________________________ > NumPy-Discussion mailing list > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion >
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
