[Numpy-discussion] profiling line by line
Sun Sep 21 02:41:18 CDT 2008
Robert Kern wrote:
> On Sun, Sep 21, 2008 at 02:26, Robert Cimrman <firstname.lastname@example.org> wrote:
>> 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
>> import line_profiler
>> 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?
> Nope, I just had a brainfart and put the implementation of label() in
> the wrong file. Pull again.
:-) The example works now in Python 2.4.
More information about the Numpy-discussion