Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 434 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 434 Bytes

OS system statistics library for Rust

This is a library to get system metrics like cpu load and memory usage, inspired by go-osstat.

Cargo.toml

os_stat = "0.1.0"

Example

extern crate os_stat;

fn main() {
    dbg!(os_stat::CPU::get());
}

Supported OS

Only Linux(>= 2.6.33)

TODOs

  • Better error-handling
  • Support macOS
  • Support Windows