Skip to content

barakadax/PerformanceMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Performance monitor

Monitor another process in runtime, CPU, RAM & Disk,

local is to run from CLI, service is to run as binary with VS code extension,

OS supported: Windows & Unix based

Pre steps for developers

  1. Rust minimum version: 1.87.0
  2. Environment variables flags:

    • RUST_LOG=debug
  3. In mac OS you need to run with taskgated permission & have SIP-disabled or just run as root

How to run:

cargo run --bin local python3 a.py

TODO:

  • Add types and translation of sizes
  • Add log to know where the monitor.json was created
  • Find replacement for sysinfo to get network information, best option `pcap` for win and mac works out of the box for unix based needs to install `libpcap` & run with `CAP_NET_RAW` privilege
  • Find replacement for sysinfo to get GPU information
  • Coverage / Unit tests
  • Integration with NodeJS TS: VS code extension repo
  • GitHub actions build binary, run tests

commands

cargo run --bin local python3 a.py

cargo run --bin service python3 a.py

cargo fmt

cargo test

cargo bench

Compile command: cargo build --target i686-pc-windows-gnu --bin local/service --release How to run: ./target/x86_64-unknown-linux-gnu/release/local python3 /home/barakadax/Desktop/codes/RustPref/a.py

Other OS compile commands: cargo build --target x86_64-pc-windows-gnu --bin local/service --release cargo build --target x86_64-apple-darwin --bin local/service --release cargo build --target x86_64-unknown-linux-gnu --bin local/service --release

About

Rust based performance monitor for information I would like to monitor on other programs I develop

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published