This is a library to get system metrics like cpu load and memory usage, inspired by go-osstat.
os_stat = "0.1.0"
extern crate os_stat;
fn main() {
dbg!(os_stat::CPU::get());
}
Only Linux(>= 2.6.33)
- Better error-handling
- Support macOS
- Support Windows