A python program for monitoring CPU/MEM of your job, and save it as a plot.
- Python 3
git clone https://github.com/shanghungshih/monitor2plot.git
--cmd
: the command you would like to monitor--output
: output plot name (default: $PWD/monitor2plot.png)--interval
: time interval for accessing CPU time (default: 0.01 sec)--theme
: theme for the plot: dark/light (default: dark)
- if the job takes a long time to run or the plot is too steep, you can specify a greater interval time, on the contrary, if it takes extremely short time, please specify a smaller interval time.
- Run the program with your command
python3 monitor2plot.py -c "ls" -i 0.0001
python3 monitor2plot.py -c "python3 test.py"
python3 monitor2plot.py -c "python3 test.py -t light"