About 50 results
Open links in new tab
  1. How can I profile Python code line-by-line? - Stack Overflow

    Step1:, pip install line_profiler Step2: In your script over your function you want to profile, add the @profile decorator Step3: Run this command to generate the .lprof file: kernprof -l <YOUR SCRIPT> …

  2. How do I use line_profiler (from Robert Kern)? - Stack Overflow

    May 27, 2014 · The line_profiler test cases (found on GitHub) have an example of how to generate profile data from within a Python script. You have to wrap the function that you want to profile and …

  3. How do I profile a Python script? - Stack Overflow

    Mar 13, 2016 · Line-granularity, thread-aware deterministic and statistic pure-python profiler It provides line-granularity as line_profiler, is pure Python, can be used as a standalone command or a module, …

  4. profiling - Python line_profiler code example - Stack Overflow

    The line_profiler test cases (found on GitHub) have an example of how to generate profile data from within a Python script. You have to wrap the function that you want to profile and then call the …

  5. Python line_profiler installation - Stack Overflow

    Then press "Control+F" and type 'line_profiler',then choose it Searching package Im use Python 3.7 , Windows 10 64 bit. Then choose the last Download your wheel file Open Command Prompt …

  6. How to profile python 3.5 code line by line in jupyter notebook 5

    Jun 24, 2017 · How to find out execution time taken by each line of python code. line_profiler works with ipython but doesnt work with jupyter notebook. I tried adding @profile to ...

  7. Can I run line_profiler on python module? - Stack Overflow

    Jan 22, 2021 · Here, I use python -m my_module.test, in order to run the test because it uses relative import. Then how can I run line_profiler, memory_profiler on a module? (it can be pytest)

  8. python - Use LineProfiler for line-by-line profiling of Django App ...

    Mar 28, 2016 · I wanted to run line-profiler on a Django app and stumbled on this StackOverflow post. The accepted answer doesn't appear to work on Python 3, and the last PyPI release of django …

  9. Python profiling using line_profiler - clever way to remove @profile ...

    Python profiling using line_profiler - clever way to remove @profile statements on-the-fly? Asked 12 years, 5 months ago Modified 4 years, 4 months ago Viewed 10k times

  10. python - How do I use line_profiler on a wrapped function ... - Stack ...

    Oct 21, 2022 · 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 …