- psutil, installed via pip
- matplotlib, installed via pip
- Change the variable PROGRAM_NAME to the program name that you want to log
- To specify the frequency of the log, change the INTERVAL variable
- To start the python script, make sure to RUN AS ADMIN, by:
- Using sudo in UNIX or Windows (if sudo is enabled)
- Running Terminal/CMD Prompt as admin and running the script
- Alternatively, use the bash script, if running in bash or its derivatives
- Logging will only run when the program to be logged is running, run the program to start the process
- To stop the logging, simply quit the program
- After stopping, the script will produce two graphs, one showing CPU Usage while the other showing memory usage
- The script will end upon exiting the graph window