Get the latest tech news

CPU Counters on Apple Silicon: article + tool


Last time I wrote about profiling in Zig on Apple Silicon, I touched on PMU counter profiling. This time I decided to go further and create my own tool to fetch all available counters for Apple Silicon processors (M1, M2, and later). Brief explanation of PMU counters PMU (Performance Monitoring Unit) counters are hardware counters that track microarchitectural events inside the CPU, e.g. executed instructions, retired operations, branches, cache misses, and more.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of tool

tool

Photo of article

article

Photo of CPU Counters

CPU Counters

Related news:

News photo

Show HN: I built a tool to create AI agents that live in iMessage

News photo

Dark web users cite Grok as tool for making 'criminal imagery' of kids, UK watchdog says

News photo

ICE's Tool to Monitor Phones in Neighborhoods