ramusage

Crates.ioramusage
lib.rsramusage
version0.1.0
sourcesrc
created_at2023-02-20 09:19:39.907298
updated_at2023-02-20 09:19:39.907298
descriptionGet the used and total amount of memory
homepagehttps://git.stuerz.xyz/ramusage
repositoryhttps://git.stuerz.xyz/ramusage
max_upload_size
id789651
size8,457
Benjamin Stürz (realchonk)

documentation

README

ramusage

This crate allows you to easily query the used and total amount of memory on your system.

Usage as a library

cargo add ramusage
use memusage::Info;

let info = Info::read().expect("Failed to read memory usage");
println!("{info}");

Usage as an executable

cargo install ramusage
ramusage

OS Support

  • Linux
  • OpenBSD (planned)

TODO

  • OpenBSD support
  • Command-line arguments parser (clap)
Commit count: 0

cargo fmt