Skip to content

Krout0n/os-stat-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages