os_stat

Crates.ioos_stat
lib.rsos_stat
version0.1.0
sourcesrc
created_at2020-09-30 07:19:24.871465
updated_at2020-09-30 07:19:24.871465
descriptionA library to get system metrics like cpu load and memory usage
homepage
repositoryhttps://github.com/Krout0n/os-stat-rs
max_upload_size
id294519
size21,075
Krouton (Krout0n)

documentation

README

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"

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
Commit count: 57

cargo fmt