HF RL Explorer

Task: Monitor CPU and Memory Usage of a Single Process on Linux

Task: Monitor CPU and Memory Usage of a Single Process on Linux: a task in Terminal-Lego-15k (Harbor dataset). Create a shell script that retrieves the CPU usage and memory usage of a single process on Linux given its PID. The script should be able to output the data in CSV format, suitable for…

The task

Create a shell script that retrieves the CPU usage and memory usage of a single process on Linux given its PID. The script should be able to output the data in CSV format, suitable for periodic monitoring using the `watch` command or similar tools.

Part of PrimeIntellect/Terminal-Lego-15k.