On Wed, Sep 17, 2008 at 10:33 PM, Robert Kern <[EMAIL PROTECTED]> wrote:

> On Wed, Sep 17, 2008 at 07:12, Arnar Flatberg <[EMAIL PROTECTED]>
> wrote:
> >
> > On Wed, Sep 17, 2008 at 3:56 AM, Robert Kern <[EMAIL PROTECTED]>
> wrote:
>

> It should be straightforward to make an ipython %magic, yes. There are
> some questions as to how that would work, though. Do you want the
> top-level code in the file to be profiled?
>
I dont think that will be my primary use.


> Or do you just want
> functions defined inside to be profiled?

That was my initial thought, yes


> Do you want to be able to
> specify functions defined outside of the code to be profiled?

Sounds complicated, but that would be nice.

I'll play around with ipythons %magic to see if I can get a workflow Im
comfortable with.
I was thinking something in the line of ipython's %prun for a quick looksy,
and the possibility to easily write small scripts to test different inputs
(small/large arrays etc.) to a specific function.
Any recommendations are very welcome. I do not have much experience in
profiling code.

Arnar
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to