[Numpy-discussion] Memory profiling NumPy code?

René Dudfield renesd@gmail....
Mon Apr 26 10:59:59 CDT 2010


numpy could implement __sizeof__


On Mon, Apr 26, 2010 at 12:16 PM, David Cournapeau <cournape@gmail.com>wrote:

> On Mon, Apr 26, 2010 at 7:57 PM, Dag Sverre Seljebotn
> <dagss@student.matnat.uio.no> 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
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100426/6d11a4d5/attachment.html 


More information about the NumPy-Discussion mailing list