Python Memory Management and Tips Transcripts
Chapter: Investigating memory usage
Lecture: Concept: Graphing memory usage over time

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Graphing memory usage over time for Python applications with Memory Profiler couldn't be easier as long
0:07 as you have matplotlib installed and you have memory_profiler installed. You can go over and say "mprofile
0:14 run" and give Python script name or application name, and it will generate one of those .memoryprofile.dat files, and then you can
0:23 plot it. You just say "mprof plot" it'll plot the latest one, and you get something that looks like this.


Talk Python's Mastodon Michael Kennedy's Mastodon