Python Memory Management and Tips Transcripts
Chapter: Investigating memory usage
Lecture: Concept: Graphing memory usage over time
0:00 Graphing memory usage over time for Python applications with Memory Profiler couldn't be easier as long
0:06 as you have matplotlib installed and you have memory_profiler installed.
0:11 You can go over and say "mprofile
0:13 run" and give Python script name or application name,
0:18 and it will generate one of those .memoryprofile.dat files, and then you can
0:22 plot it. You just say "mprof plot" it'll plot
0:25 the latest one, and you get something that looks like this.