A Rust application that monitors the CPU utilization of Processes by PIDs
Use Cargo to build the project
cargo build --release
This implementation of process monitor depends on psutil for getting process information, chrono for local time stamps, rusqlite to write data to the database and clap to parse command line input.
psutil = "3.1.0"
chrono = "0.4"
clap = "2.33.2"
rusqlite = "0.23.1"
rust_cpu_pid [FLAGS] [OPTIONS]
FLAGS:
-i, --interactive Launches Interactive Mode
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-b, --batch <batch> List of PIDs separated by commas e.g. -b 646,323,55,665
Once the console application starts, Enter a PID to monitor or leave blank and press enter to monitor the current process.
Interactive Mode
RUST Process CPU utilization
Please Enter Process IDs separated by commas
e.g. 646,456,345 (Leave Blank to Monitor this application)
Please make sure SQLite 3 is installed on your system.
Data is written to SQLite Database pid_data.db in the table pid_util.