About 50 results
Open links in new tab
  1. How do I profile a Python script? - Stack Overflow

    Mar 13, 2016 · 1758 Project Euler and other coding contests often have a maximum time to run or people boast of how fast their particular solution runs. With Python, sometimes the …

  2. python - How to profile my code? - Stack Overflow

    Profiling with cProfile Here's a post I wrote some time ago on profiling with cProfile with some graphical aid. cProfile is one of the most used python profilers out there, and although very …

  3. How can I profile Python code line-by-line? - Stack Overflow

    On slower code, I recommend using the statistic mode, which has a ridiculously small overhead - at the expense of trace imprecision and readability. But it can be a first step too: identify hot …

  4. How do I profile memory usage in Python? - Stack Overflow

    Feb 16, 2009 · I'm already familiar with the standard Python module for profiling runtime (for most things I've found the timeit magic function in IPython to be sufficient), but I'm also interested in …

  5. Profiling a python program with PyCharm (or any other IDE)

    Profiling a python program with PyCharm (or any other IDE) [closed] Asked 10 years, 4 months ago Modified 3 years, 9 months ago Viewed 71k times

  6. Python multiprocess profiling - Stack Overflow

    I want to profile a simple multi-process Python script. I tried this code: import multiprocessing import cProfile import time def worker(num): time.sleep(3) print 'Worker:', num if __name_...

  7. Profiling Python with Nvidia NSight - Stack Overflow

    Jan 3, 2020 · nsys profile C:\Users\beru\AppData\Local\Programs\Python\Python38\python.exe demo.py By the way, this answer also helps me to know what to do for profiling python code …

  8. Profiling Python code that uses multiprocessing? - Stack Overflow

    Aug 9, 2013 · In my understanding the cProfile module doesn't play well with multiprocessing on the command line. (See Python multiprocess profiling.) One way to work around this is to run …

  9. profiling simple python script with VTune in ubuntu

    Aug 11, 2023 · Python code profiling is supported for Windows and Linux target systems only. In some cases, the VTune Profiler may not resolve full names of Python functions and modules …

  10. profiling - How to profile/benchmark Python ASYNCIO code

    Jan 21, 2019 · How do I profile/benchmark an assynchronous Python script (which uses ASYNCIO)? I you would usualy do totalMem = tracemalloc.get_traced_memory()[0] totalTime …