Skip to content

Instantly share code, notes, and snippets.

@mmozeiko
mmozeiko / _miniperf_readme.md
Last active February 6, 2026 05:43
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)
@chadbrewbaker
chadbrewbaker / 15MayNotes.md
Last active May 16, 2022 07:16
Perfchat 15 May 2022

Perfchat 15 May 2022 Show Notes

News by Denis

General Disussion

@pervognsen
pervognsen / shift_dfa.md
Last active November 8, 2025 18:12
Shift-based DFAs

A traditional table-based DFA implementation looks like this:

uint8_t table[NUM_STATES][256]

uint8_t run(const uint8_t *start, const uint8_t *end, uint8_t state) {
    for (const uint8_t *s = start; s != end; s++)
        state = table[state][*s];
    return state;
}

History