Profilers are a powerful tool for debugging performance issues in applications and services. An experienced engineer who is running code in production has to know how to use these to be able to analyze performance issues in their systems. This video gives a quick introduction to the world of profilers in Python. Here is what it covers:
What are profilers
Kinds of profilers
Tracing profilers — how do they work, and how to use them in Python
Sampling profilers — how do they work and a demo of py-spy
How to use perf to profile Python
I made this video because tomorrow we are doing a live session on building a bare bones sampling profiler for Python and I think it is topical that I covered profilers before diving deep into their implementation.
If you are someone who is interested in systems programming and enjoy learning how tools like compilers, debuggers, profilers work then do sign-up for the session tomorrow, you can find the details in the below linked post.
Support Confessions of a Code Addict
If you find my work interesting and valuable, you can support me by opting for a paid subscription (it’s $6 monthly/$60 annual). As a bonus you get access to monthly live sessions, past recordings.
Many people report failed payments, or don’t want a recurring subscription. For that I also have a buymeacoffee page. Where you can buy me coffees or become a member. I will upgrade you to a paid subscription for the equivalent duration here.
I also have a GitHub Sponsor page. You will get a sponsorship badge, and also a complementary paid subscription here.
Share this post