This piece of code when ran in a single cell in Google Colab, will log the usage of the ram every 10 seconds into /content/process_ram_usage.txt
. And you can use other cells while this cells is running (in background).
When you're done logging, use log_process.kill()
on a new cell