[Numpy-discussion] Memory profiling NumPy code?
Mon Apr 26 10:59:59 CDT 2010
numpy could implement __sizeof__
On Mon, Apr 26, 2010 at 12:16 PM, David Cournapeau <email@example.com>wrote:
> On Mon, Apr 26, 2010 at 7:57 PM, Dag Sverre Seljebotn
> <firstname.lastname@example.org> 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,
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion