ETW tracing with PerfView to troubleshoot CS2 frame rate stutters

What PerfView is
PerfView is a free Microsoft performance analysis tool built to diagnose CPU, thread, and memory bottlenecks. Although it is primarily a Windows tool, it can also inspect trace data collected on Linux. For Counter-Strike 2 players dealing with sudden freezes or frame-time spikes, PerfView lets you capture an Event Tracing for Windows (ETW) trace that can pinpoint what actually stalled the game — and gives Valve's developers actionable data if you submit a bug report.
When not to use PerfView
Credit goes to Valve engineer Fletcher Dunn (@ZPostFacto) for sharing the exact process for capturing CS2 performance traces. As he explains, an ETW trace is meant for investigating hitches and stutters, not general low FPS or network problems:
An ETW trace is usually NOT the right tool for investigating problems such as:
- My average FPS is slower than it used to be.
- Most of the time my FPS is 500, but sometimes it drops to 450.
- I am getting packet loss.
— Fletcher Dunn, 16 October 2023
How to capture an ETW trace for CS2 stutters
Follow every step below carefully. If you skip the cleanup steps or omit the required notes, the trace is very difficult to analyse and Valve developers are unlikely to look at it.
As Fletcher notes:
We usually DON'T need to know your system specs, or that you have an awesome computer, or a super fast Internet connection, or that the problem is only with our game, etc. Save yourself the time and include ALL of the information above, but ONLY the information above.
Close unneeded apps and reset tweaks
Very often, frame-time hitches are caused by background software or custom system tweaks rather than CS2 itself. Before recording a trace, run the game in as plain a state as possible:
- Close background applications: Open Windows Task Manager and shut down non-essential processes outside Windows and Steam, including:
- RGB and LED control software
- FPS monitors and tuning tools (RivaTuner, MSI Afterburner, etc.)
- Adobe Creative Cloud / Photoshop
- NVIDIA Share / ShadowPlay overlay
- Xbox Game Bar
- Discord (important for isolating the cause — if the stutter only happens while Discord or another popular app is open, mention that when you send the trace)
- Remove custom game tweaks:
- Reset console variables (
convars) that cannot be changed through the in-game UI back to their defaults. - Standard in-game UI settings and keybinds are fine, unless they directly affect performance or frame pacing (such as network buffering).
- Test lowering your in-game graphics settings to see whether the hitch disappears, even if your PC should easily handle higher settings.
- Remove launch options. Testing both DirectX and
-vulkanis helpful, as long as you try both. - Check your
autoexec.cfgand temporarily disable it if you are unsure whether any command affects performance.
- Reset console variables (
- Undo system "optimisations":
- Disable process-priority tools such as Process Lasso.
- Temporarily revert any CPU, GPU, or RAM overclocks.
- Reset graphics drivers:
- Update your graphics driver to the latest release.
- Restore driver settings to default (for example, NVIDIA Control Panel > Manage 3D settings > Restore).
Before you record, turn on the in-game telemetry HUD in CS2 and watch the max frame time (ms) readout. Note what it normally sits at when gameplay is smooth, and what it spikes to when a hitch happens.
Read the privacy notice before recording
While PerfView is recording, it can capture keystrokes, full file paths accessed by programs, DNS lookups, and other activity across your entire system — not just CS2.
Close all web browsers and act as though someone is looking over your shoulder while the trace runs:
- Do not do anything private during the capture.
- Never type passwords, bank details, or other sensitive information while recording.
Record and send the ETW trace
- Download and install PerfView using the official Microsoft PerfView download guide.
- Run
PerfView.exe. - Open Collect > Collect from the top menu.

- Note the output filename so you know where the trace will be saved.
- Check the required options — especially:
- Thread Time
- Cpu Samples
- Zip (recommended, so PerfView compresses the trace automatically)
- In the Additional Providers field, paste this exact string with no spaces (the screenshot above shows an older list, so use the string below):
*Valve.SteamNetworkingSockets,*Valve.Source,*Valve.Source.Net,*Valve.Source.Client,*Valve.Source.Input,*Valve.Source.Render
- Do not click Start Collection yet. Launch CS2 and load into the map first so you do not bloat the trace with startup and map-loading data (unless your issue specifically occurs during startup or loading).
- Once gameplay is running smoothly,
Alt+Tabto PerfView and click Start Collection. - Play until you reproduce the hitch. If you change maps or switch servers, stop the trace and start a fresh one.
- Click Stop Collection shortly after the stutter happens. Capture one clear instance rather than letting the trace run through several examples — a single hitch near the end of the file is far easier to locate.
- Upload the zipped trace to a file host such as Dropbox or Google Drive, and verify the link opens in a private/incognito window.
- Send the link privately (for example, via email or Reddit PM) rather than posting it publicly.
When submitting your trace, include only these details:
- Frame time numbers: Your normal max frame time (ms) from the telemetry HUD and the value it spiked to during the hitch.
- Specific description: Describe what actually happened (for example, a single 400 ms freeze or a 5-second drop to 30 FPS) instead of vague statements like "the game feels laggy".
- Elapsed time before stopping: Roughly how many seconds passed between the hitch occurring and clicking Stop Collection, so developers can jump straight to the right point in the timeline.
Once the developers confirm they have downloaded the file, delete the uploaded trace.
