perfcnt
A library to program performance counters in rust.
Example library usage
let mut pc: PerfCounter = from_hardware_event
pc.start.expect;
pc.stop.expect;
let res = pc.read.expect;
println!;
- See examples/ directory for more code-snippets on how-to use the library to create counters.
Documentation
Provided Programs
- perfcnt-list: Lists all architecture specific events available on the current machine (currently only supports Intel x86).
Known limitations
- Linux support without breakpoints and tracepoints
- No Windows or MacOS X support
- Missing raw AMD and ARM aarch64 events