Optimize Your Python Programs: Code Profiling with cProfile

Поделиться
HTML-код
  • Опубликовано: 5 янв 2023
  • In this video, we learn how to professionally profile Python code using cProfile, to optimize the speed of our programs.
    ◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
    📚 Programming Books & Merch 📚
    🐍 The Python Bible Book: www.neuralnine.com/books/
    💻 The Algorithm Bible Book: www.neuralnine.com/books/
    👕 Programming Merch: www.neuralnine.com/shop
    🌐 Social Media & Contact 🌐
    📱 Website: www.neuralnine.com/
    📷 Instagram: / neuralnine
    🐦 Twitter: / neuralnine
    🤵 LinkedIn: / neuralnine
    📁 GitHub: github.com/NeuralNine
    🎙 Discord: / discord
    🎵 Outro Music From: www.bensound.com/
  • НаукаНаука

Комментарии • 31

  • @csm9446
    @csm9446 Год назад +3

    Great content. Excellent tutorial. In 15 minutes you passed all the information to get started with python's cProfile. Thanks!

  • @gitarrtoken
    @gitarrtoken Год назад

    Great tutorials as always! Started watching lots of your tutorials lately, just great content 🎉

  • @danielgranjaconejeros6355
    @danielgranjaconejeros6355 4 месяца назад

    Was looking for py-spy tutorials but yours on cProfile is so practical that I will go with this tool. Thanks!

  • @JustMaiyak
    @JustMaiyak Год назад +15

    There’s a new profiler that got putt last year as well, it’s called scalene. Used it a couple of times, it’s a solid alternative to cProfile

    • @authentic_101
      @authentic_101 3 месяца назад +1

      Austin is faster than simpler use cases?

  • @nintishia
    @nintishia Год назад

    Content is extremely useful for python developers.

  • @x9rtu3os1t8
    @x9rtu3os1t8 Год назад

    You are Great! Thank you.

  • @STranswarp
    @STranswarp 19 дней назад

    Golden tutorial

  • @glibmar
    @glibmar Год назад

    Nice!!! Thank you

  • @MrRezhes
    @MrRezhes Год назад

    Thanks for your videos, I have followed the exact code, but the tuna does not recognize some lines and the browser part does not show any of the stats, do u have any idea where the issue is??

  • @thomasgoodwin2648
    @thomasgoodwin2648 Год назад +1

    oooh shiny new (actually they look a tiny bit ancient but new to me) tools for the kit. Thanks again... and again... and...

  • @alexnefayne4266
    @alexnefayne4266 Год назад

    Thanks again for another awesome tutorial!! did u need to install a plugin to make pycharm automatically import time ?

  • @akahige9764
    @akahige9764 Год назад +4

    Nice videos, so good to learn something new every time about python. Wondering if you could make something like: simple rules to write faster python programms. Great job, keep going !!!

  • @m7amssa
    @m7amssa Год назад +1

    Please i need help:
    How to create a scrolling bar using customtkinter 'python'

  • @1mrnewton
    @1mrnewton Год назад

    Terrific!

  • @grantfact9740
    @grantfact9740 10 месяцев назад

    Life saver

  • @rons96
    @rons96 Год назад

    Nice optimized solution with only python, but if you have nice space on disk and Windows installed, cythonize it, or maybe just use yield then converse it to a list

  • @tejas4054
    @tejas4054 Год назад

    I want to know how to do it in django please tell

  • @user-eg5xb8ot4g
    @user-eg5xb8ot4g 11 месяцев назад

    Can you make video for memory profiling also instead of time

  • @samratbiswas
    @samratbiswas Год назад

    Hiii, Can you make a video on, "How to generet some project files Automaticly - by using command line". Like Django do...

  • @lixiang7349
    @lixiang7349 Год назад +1

    Dude, why do you keep on counting number of zeros. you do know you can use 1e7 right

  • @danielabouelezz6448
    @danielabouelezz6448 Год назад

    Great video as usual... can you please do a video on back propagation programming

  • @pra1had
    @pra1had Год назад

    Pretty concise, please try and share the python code it that's possible

  • @BPJennieYeager
    @BPJennieYeager 11 месяцев назад

    why does your print function take so little time? my print function takes 97 seconds.

  • @gdonisi
    @gdonisi Год назад

    What about a PyPy video?

  • @rons96
    @rons96 Год назад

    man, it's just didatic thing or you program using pycharm in Windows system everyday? There's no problem with that, but I personally think Windows is annoying for programming because the tons of bloatware, everytime popups to be sure you are not doing some harmful thing to the system, etc... But almost everything is configurable, taste is taste.
    EDIT: Almost forgot: nice video, I learn many things here, you're good teacher.

  • @chikkii1601
    @chikkii1601 Год назад

    First comment 🥳🥳🥳🥳🥳🥳🥳

  • @bravitheja1142
    @bravitheja1142 4 месяца назад

    7:11

  • @nawrashussein2004
    @nawrashussein2004 6 месяцев назад

    (tuna result.prof) doesn't open a GUI or browser page. I always get "'tuna' is not recognized as an internal or external command, operable program or batch file." what I suppose to do ?
    I already installed (pip install tuna) and when I am trying to reinstall it I get (Requirement already satisfied: tuna in c:\users\alnaseem\appdata
    oaming\python\python312\site-packages (0.5.11))
    help please