[Numpy-discussion] Profiling (was GSoC : Performance parity between numpy arrays and Python scalars)

David Cournapeau cournape at gmail.com
Thu May 2 09:25:28 EDT 2013


> * Re: the profiling, I wrote a full oprofile->callgrind format script
> years ago: http://vorpus.org/~njs/op2calltree.py
> Haven't used it in years either but neither oprofile nor kcachegrind
> are terribly fast-moving projects so it's probably still working, or
> could be made so without much work.
> Or easier is to use the gperftools CPU profiler:
> https://gperftools.googlecode.com/svn/trunk/doc/cpuprofile.html

I don't have experience with gperftools, but on recent linux kernels,
you can also use perf, which can't be made easier to use (no runtime
support needed), but you need a 'recent' kernel

http://indico.cern.ch/getFile.py/access?contribId=20&sessionId=4&resId=0&materialId=slides&confId=141309

I am hoping to talk a bit about those for our diving into numpy c code
tutorial in June, what's the + of gperf in your opinion ?

David



More information about the NumPy-Discussion mailing list