darwin-kperf-events 0.1.0

Apple Silicon PMU event definitions for darwin-kperf
Documentation
  • Coverage
  • 100%
    524 out of 524 items documented0 out of 18 items with examples
  • Size
  • Source code size: 306.62 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 9.66 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hashdotai

Hardware performance counter events for Apple Silicon.

This crate is auto-generated by darwin-kperf-codegen from the PMC database plists in /usr/share/kpep/. Do not edit by hand.

Types

  • [Event]: chip-agnostic event enum covering M1 through M5. Use [Event::on] to resolve an event for a specific [Cpu], which checks availability and returns the chip-specific metadata.
  • [Cpu]: Apple Silicon chip generation, identified by the kpep_db.name field at runtime.
  • [EventInfo]: trait providing event metadata (name, description, counter mask, etc.), implemented by per-chip enums ([M1Event], [M2Event], ...) and by [ResolvedEvent].
  • [ResolvedEvent]: an [Event] resolved for a specific [Cpu], returned by [Event::on].