ramusage 0.1.0

Get the used and total amount of memory
Documentation
  • Coverage
  • 60%
    3 out of 5 items documented3 out of 3 items with examples
  • Size
  • Source code size: 7.99 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.66 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • realchonk

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)