English | 简体中文
Capture and analyze Event Tracing for Windows (ETW) data for intermittent desktop freezes, audio glitches, and short-lived performance issues. Windows Performance Recorder (WPR) keeps recent events in a 288 MB memory buffer. When a capture is triggered, the Python analyzer can inspect the saved .etl file without the Windows Assessment and Deployment Kit (ADK).
flowchart LR
A["Windows ETW events"] --> B["WPR circular memory buffer"]
B --> C["Manual capture or detected stall"]
C --> D["ETL trace saved to disk"]
D --> E["Python analysis report"]
The circular buffer overwrites its oldest events as it fills. The amount of history available at capture time depends on the event rate. The analyzer reports trace gaps, DPC and ISR timing, audio events, and nearby process activity to help narrow down possible causes.
- 64-bit Windows 10 or 11 with Windows Performance Recorder (
wpr.exe). - Python 3.10 or later on
PATH. Both the monitor and analyzer use the standard library. - Administrator privileges to install or manage capture. Manual captures through the installed monitor and offline analysis run without administrator privileges.
Download the ZIP from the latest release and extract it.
| Task | Command file | Result |
|---|---|---|
| Start recording | 1-Install-And-Start.cmd |
Starts WPR and installs a scheduled monitor. By default, the monitor is configured to expire after seven days. |
| Save a trace | 2-Trigger-Capture-Now.cmd |
Exports the recent trace to outputs/. Run this shortly after you notice a symptom. |
| Analyze a trace | 3-Analyze-ETL-Drop-Here.cmd |
Analyzes the newest trace in outputs/ or the .etl file you drop onto the script. Saves a .report.txt file next to the trace. |
| Pause | 4-Pause-1-Hour.cmd |
Pauses monitoring for one hour. |
| Uninstall | 5-Uninstall-Self-Destruct.cmd |
Stops recording and removes the monitor. Captured traces remain available in outputs/. |
The installer cancels any active WPR recording before starting its profile. Save other WPR sessions before running it.
# Start capture from an elevated PowerShell
.\capture\Install-StutterCapture.ps1
# Trigger a capture and check monitor status
.\capture\Trigger-Now.cmd
.\capture\Status-Check.cmd
# Analyze a saved trace
python .\analyzer\analyze_etl.py .\outputs\trace_YYYYMMDD_HHMMSS.etl
# Pause capture, or remove the monitor when finished
.\capture\Pause-Until.ps1 -Minutes 120
.\capture\Self-Destruct.ps1| Analyzer option | Effect |
|---|---|
--gap-ms 30 |
Sets the minimum gap duration to flag, in milliseconds. The default is 30. |
--window-sec 5 |
Sets the lookback window for process and DLL activity before a gap, in seconds. The default is 5. |
--json report.json |
Also saves the report as JSON. |
This example shows a gap across all CPU cores alongside audio events and authentication or TPM activity. Use the timing correlations to guide further investigation.
============================================================================
WIN-FLIGHT-RECORDER | ZERO-ADK ETW FORENSIC REPORT
============================================================================
File : trace_20261202_202747.etl (88.75 MB)
Active Span: 20:12:43.927 -> 20:27:48.600 (904.67s) | CPUs: 16
Events : 6,719,641 | Lost Events: 0 | Lost Buffers: 0
Max DPC/ISR: DPC = 2.18 ms | ISR = 0.13 ms
Audio 118 : 21x (20:27:44.607 -> 20:27:45.247)
--- AUTOMATED VERDICT ---
* HARDWARE/FIRMWARE ALL-CORE FREEZE DETECTED: 18 consecutive global gaps
(total 1146.4 ms frozen, median 66.3 ms, freeze density 87%) while max
DPC=2.18 ms and max ISR=0.13 ms. Strongly matches AMD Ryzen fTPM
SPI-flash stall (PA-410) or BIOS SMI.
* AUDIO GLITCH CONFIRMED: 21x Microsoft-Windows-Audio Event 118.
* AUTH / TPM TRIGGER CORRELATED RIGHT BEFORE FREEZE: oneauth.dll,
aadWamExtension.dll, AAD.Core.dll, wlidsvc.dll, tbs.dll.
For traces that suggest AMD fTPM involvement on an older Ryzen 5000 laptop, see the companion mitigation guide.
| Path | Contents |
|---|---|
profiles/ |
WPR capture profile |
capture/ |
Monitor, capture, pause, status, and cleanup scripts |
analyzer/ |
ETL analyzer |