1 unstable release
Uses old Rust 2015
0.0.1 | Nov 11, 2014 |
---|
#46 in #accounting
4KB
77 lines
rust-cgroup
Simple cgroup accounting accessing.
lib.rs
:
CGroup management.
Example
extern crate cgroup;
fn main() {
let cg = cgroup::CGroup::new().unwrap();
let cont = cg.controller(b"memory").unwrap();
println!("{}", cont.get(b"memory.usage_in_bytes"));
}