Optimize Your Python Programs: Code Profiling with cProfile

แชร์
ฝัง
  • เผยแพร่เมื่อ 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/
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 30

  • @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 หลายเดือนก่อน +1

      Austin is faster than simpler use cases?

  • @gitarrtoken
    @gitarrtoken ปีที่แล้ว

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

  • @csm9446
    @csm9446 ปีที่แล้ว +1

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

  • @danielgranjaconejeros6355
    @danielgranjaconejeros6355 2 หลายเดือนก่อน

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

  • @alexnefayne4266
    @alexnefayne4266 ปีที่แล้ว

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

  • @nintishia
    @nintishia ปีที่แล้ว

    Content is extremely useful for python developers.

  • @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...

  • @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 !!!

  • @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??

  • @x9rtu3os1t8
    @x9rtu3os1t8 ปีที่แล้ว

    You are Great! Thank you.

  • @glibmar
    @glibmar ปีที่แล้ว

    Nice!!! Thank you

  • @m7amssa
    @m7amssa ปีที่แล้ว +1

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

  • @lixiang7349
    @lixiang7349 ปีที่แล้ว +1

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

  • @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

  • @1mrnewton
    @1mrnewton ปีที่แล้ว

    Terrific!

  • @user-eg5xb8ot4g
    @user-eg5xb8ot4g 9 หลายเดือนก่อน

    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...

  • @grantfact9740
    @grantfact9740 8 หลายเดือนก่อน

    Life saver

  • @danielabouelezz6448
    @danielabouelezz6448 ปีที่แล้ว

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

  • @tejas4054
    @tejas4054 ปีที่แล้ว

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

  • @pra1had
    @pra1had 10 หลายเดือนก่อน

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

  • @BPJennieYeager
    @BPJennieYeager 9 หลายเดือนก่อน

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

  • @nawrashussein2004
    @nawrashussein2004 4 หลายเดือนก่อน

    (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

  • @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.

  • @bravitheja1142
    @bravitheja1142 2 หลายเดือนก่อน

    7:11

  • @chikkii1601
    @chikkii1601 ปีที่แล้ว

    First comment 🥳🥳🥳🥳🥳🥳🥳