[Numpy-discussion] Memory profiling NumPy code?

David Cournapeau cournape at gmail.com
Mon Apr 26 07:16:25 EDT 2010


On Mon, Apr 26, 2010 at 7:57 PM, Dag Sverre Seljebotn
<dagss at 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



More information about the NumPy-Discussion mailing list