1个不稳定版本
使用旧的Rust 2015
0.0.1 | 2014年11月11日 |
---|
#42 in #accounting
4KB
77 代码行
rust-cgroup
简单的cgroup会计访问。
lib.rs
:
CGroup管理。
示例
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"));
}