Based on the answer to this question I was trying to use the line_profiler with a cythonized function.
On the abovementioned question, the accepted answer gives us an example on how to use it with jupyter notebook.
However, when I try to build the pyx
file using disutils it doesn't work.
We I plainly try to run the script using
kernprof -l -v script.py
It only returns the the Timer unit
elapsed time.
If I try to decorate the function on the cython file using @profile
, it doesn't compile returning:
undeclared name not builtin: profile
Any ideas ?