SINCE RIPTIDE —
KZ kz.spawnterror.com

ETW tracing with PerfView to troubleshoot CS2 frame rate stutters

Microsoft PerfView ETW tracing tool for Counter-Strike 2 troubleshooting

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:

— Fletcher Dunn, 16 October 2023

Fletcher Dunn post on X explaining when to use an ETW trace for CS2

How to capture an ETW trace for CS2 stutters

Caution

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:

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

Warning

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:

Record and send the ETW trace

  1. Download and install PerfView using the official Microsoft PerfView download guide.
  2. Run PerfView.exe.
  3. Open Collect > Collect from the top menu.

PerfView Collect dialog configured with Thread Time, CPU Samples, and Valve providers

  1. Note the output filename so you know where the trace will be saved.
  2. Check the required options — especially:
    • Thread Time
    • Cpu Samples
    • Zip (recommended, so PerfView compresses the trace automatically)
  3. 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
  1. 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).
  2. Once gameplay is running smoothly, Alt+Tab to PerfView and click Start Collection.
  3. Play until you reproduce the hitch. If you change maps or switch servers, stop the trace and start a fresh one.
  4. 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.
  5. Upload the zipped trace to a file host such as Dropbox or Google Drive, and verify the link opens in a private/incognito window.
  6. Send the link privately (for example, via email or Reddit PM) rather than posting it publicly.

When submitting your trace, include only these details:

Once the developers confirm they have downloaded the file, delete the uploaded trace.

Download PerfView