Navigate Select ESC Close

Optimize Your Python Programs: Code Profiling with cProfile

2023-01-06 Science & Technology
53.5k
1.2k
36
NeuralNine
NeuralNine
470.0k subscribers

Unlock all features

FREE: Get instant access to 10 AI summaries, chats, or transcripts per day.

Description

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: https://www.neuralnine.com/books/ 💻 The Algorithm Bible Book: https://www.neuralnine.com/books/ 👕 Programming Merch: https://www.neuralnine.com/shop 🌐 Social Media & Contact 🌐 📱 Website: https://www.neuralnine.com/ 📷 Instagram: https://www.instagram.com/neuralnine 🐦 Twitter: https://twitter.com/neuralnine 🤵 LinkedIn: https://www.linkedin.com/company/neuralnine/ 📁 GitHub: https://github.com/NeuralNine 🎙 Discord: https://discord.gg/JU4xr8U3dm 🎵 Outro Music From: https://www.bensound.com/

Top Comments (10)

@JustMaiyak 2023-01-06

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

19 1 replies
@csm9446 2023-02-12

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

6
@lixiang7349 2023-01-30

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

6
@thomasgoodwin2648 2023-01-06

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

1
@don__Pedro 2025-01-24

Очень круто рассказали про профилирование! Большое спасибо. Это было первое видео по теме, которую я изучаю, и теперь мне не нужно смотреть другие ролики — всё стало понятно. Ещё раз благодарю автора за такой серьёзный подход! You did an awesome job explaining profiling! Thank you very much. This was the first video on the topic I’m studying, and now I don’t need to watch any other videos—everything is clear. Once again, thank you for such a serious approach! P.S.: Greetings from Moscow!

1
@techsFascinating 2023-05-23

Content is extremely useful for python developers.

0
@GijsBol1000 2025-11-20

Actual content starts at around 4:30. Before that is just setting things up.

0
@gitarrtoken 2023-01-06

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

0
@danielsgc96 2024-03-17

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

0
@x9rtu3os1t8 2023-01-07

You are Great! Thank you.

0

Unlock the Data Inside
Turn Videos into Knowledge

  • Get FREE 10/day: transcripts, summaries, chats
  • Chat with videos, export text & PDF
  • $1 free API credit for RAG, chatbots & research

Free forever plan • All features unlocked

App screenshot