[go: nahoru, domu]

Skip to content

Rust Application to Monitor CPU Utilisation of a process by PID

Notifications You must be signed in to change notification settings

zainussami/rust_cpu_pid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RUST CPU Utilization by PID

A Rust application that monitors the CPU utilization of Processes by PIDs

Compile

Use Cargo to build the project

cargo build --release

Dependencies

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"

Usage

    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)

Data Format

Please make sure SQLite 3 is installed on your system.

Data is written to SQLite Database pid_data.db in the table pid_util.

About

Rust Application to Monitor CPU Utilisation of a process by PID

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages