line-profiler

How do I use line_profiler on a wrapped function?

How do I use line_profiler on a wrapped function? Question: I’ve been trying to use line_profiler on a wrapped function. However, the wrapper function gets profiled instead of the wrapped function. The executable snippet below shows that I can see that my @decorate wrapper function gets profiled instead of my d() function. Snippet: testy_profiler.py from …

Total answers: 2

How do I use line_profiler (from Robert Kern)?

How do I use line_profiler (from Robert Kern)? Question: I have tried using the line_profiler module for getting a line-by-line profile over a Python file. This is what I’ve done so far: 1) Installed line_profiler from pypi by using the .exe file (I am on WinXP and Win7). Just clicked through the installation wizard. 2) …

Total answers: 6