perfcnt Build Status Crates.io

A library to program performance counters in rust.

Example library usage

rust let mut pc: PerfCounter = PerfCounterBuilderLinux::from_hardware_event(HardwareEventType::CacheMisses) pc.start().expect("Can not start the counter"); pc.stop().expect("Can not start the counter"); let res = pc.read().expect("Can not read the counter"); println!("Measured {} cache misses.", res); * See examples/ directory for more code-snippets on how-to use the library to create counters.

Documentation

Provided Programs

Known limitations