This repository holds the source code for the perf-event2 and
perf-event-open-sys2 crates, which provide access to performance monitoring
hardware and software on linux.
This repository is a fork of Jim Blandy's perf-event crate that has been
updated to include several new features:
perf-event2 supports many more event typesperf-event2 supports reading and parsing profiling samples emitted by the
kernel.For more details see the readmes within the respective crate directories:
On systems other than Linux the perf-event2 crate will not compile but you
can use the data types exposed by the perf-event-open-sys2 crate. This can
useful for code that needs to parse perf-related data produced on Linux or
Android systems. The syscall and ioctl functions will not be available.
perf-event crate is still usable depending on your use case.perf or perf_event_open see the
perf-event-data crate.