The Real Python Podcast cover image

Using a Memory Profiler in Python & What It Can Teach You

The Real Python Podcast

00:00

Using a Tracing Profiler on a Stream of Bytes

Memory is a tracing profiler. It records every single thing that happens and puts it into the file. Once you have this file, you can analyze the information in different ways. You don't need to rerun your program. So, we could say okay, maybe this flame graph does cover what I want? And then you can grab the file and produce a Flame Graph. That will give you an idea of how much memory there is at any one time. But now I want to see if there is any memory leaks in my program. We are talking about Python's memory profile. This is normally referred to as 'memory sampling due' Because they kind of do some statistical sampling based on

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app