[Numpy-discussion] profiling line by line
Sun Sep 21 02:26:15 CDT 2008
Robert Kern wrote:
> On Sun, Sep 21, 2008 at 02:09, Robert Cimrman <email@example.com> wrote:
>> Robert Kern wrote:
>>> On Fri, Sep 19, 2008 at 07:00, Robert Cimrman <firstname.lastname@example.org> wrote:
>>>> Robert Kern wrote:
>>>>> Ah, found it. T_LONGLONG is a #define from structmember.h which is
>>>>> used to describe the types of attributes. Apparently, this was not
>>>>> added until Python 2.5. That particular member didn't actually need to
>>>>> be long long, so I've fixed that.
>>>> Great, I will try it after it appears on the web page.
>>> Oops! It's now pushed.
>> Thanks, it builds ok now! But then cProfile is also new in 2.5. - I
>> should probably upgrade and stop bothering you :-)
> Actually, if you pull again, I've just pushed my changes to remove the
> hard dependency on cProfile.
Cool, then I have another one:
$ ./kernprof.py -l pystone.py
Traceback (most recent call last):
File "./kernprof.py", line 173, in ?
File "./kernprof.py", line 138, in main
line 9, in ?
from _line_profiler import LineProfiler as CLineProfiler
File "_line_profiler.pyx", line 3, in _line_profiler
from cProfile import label
ImportError: No module named cProfile
Or do I call the profiler in a wrong way?
More information about the Numpy-discussion