I want to get the CPU and memory usage of a single process on Linux - I know the PID. Hopefully, I can get it every second and write it to a CSV using the \'watch\' command
You can get the results by the name of the process using
ps -C chrome -o %cpu,%mem,cmd
the -C option allows you to use process name without knowing it's pid.
-C