Skip to content

Instantly share code, notes, and snippets.

View olologin's full-sized avatar

Ibraim Ganiev olologin

View GitHub Profile
@olologin
olologin / _miniperf_readme.md
Created February 17, 2025 22:51 — forked from mmozeiko/_miniperf_readme.md
get PMU counter values with ETW, perf or kperf

MiniPerf

Example of how to capture CPU counters with ETW on Windows, perf on Linux or kperf on Apple.

Using ETW needs somewhat recently updated Windows 10 or 11. Not sure about exact version.

Currently tested on:

  • etw on Qualcomm Snapdragon X Elite, Windows 11, arm64
  • etw on AMD Zen 3, Windows 11 (with virtualization enabled in BIOS)