improver.memprofile module
Module containing maximum memory profiling utilities.
- memory_monitor(queue, outfile_prefix)[source]
Function to track memory usage, should be run in a separate thread to the main program.
Samples max_rss every 0.1s, if the max_rss is higher than the previous max_rss, then creates a tracemalloc snapshot. There is a performance overhead when using this.