Skip to content

Instantly share code, notes, and snippets.

View santiagocabrera96's full-sized avatar

Santiago Cabrera santiagocabrera96

View GitHub Profile
@mmozeiko
mmozeiko / _miniperf_readme.md
Last active November 5, 2024 05:53
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)