pub fn setup_memory_usage_monitoring()
Spawns a thread that emits warnings when the used memory is high.