Windows Performance Analyzer

On this page 7

Windows Performance Analyzer (WPA) is the Microsoft desktop tool that opens Event Tracing for Windows (ETW) recordings and turns millions of kernel and application events into graphs and pivot tables, so an analyst can see exactly where time was spent during a slow operation. In Windows performance work it is the deepest diagnostic layer: Task Manager and Resource Monitor show what is happening now, while WPA explains why a specific delay happened, down to the thread, stack and driver.

WPA ships with the Windows Performance Toolkit, part of the Windows Assessment and Deployment Kit (ADK), and is also distributed through the Microsoft Store. It never records anything on its own; capture is the job of Windows Performance Recorder (WPR) or the command-line tool xperf, and WPA is the analysis half of the toolkit.

How Windows Performance Analyzer reads ETW traces

WPA works on event trace log files (.etl), which are binary recordings produced by ETW providers built into the kernel, drivers and applications. Each event carries a high-resolution timestamp, a process and thread identifier and, when stack walking was enabled, a call stack captured at the moment of the event.

When a trace opens, WPA parses the events into data sources such as CPU sampling, context switches, disk I/O and memory allocations. It then resolves addresses into function names through symbol files (.pdb), loaded from the Microsoft public symbol server or a local cache. Without symbols, stacks show only module offsets, so configuring symbol paths is the first practical step in serious analysis.

The following table lists the main event sources that WPA visualizes and the question each one answers.

Data sourceUnderlying eventsQuestion it answers
CPU usage (sampled)Profile interrupts, about 1 kHz by defaultWhich functions consume processor time
CPU usage (precise)Context switch and ready-thread eventsWhy a thread waited and who woke it
Disk usageDisk I/O start and completionWhich files and processes caused storage latency
MemoryVirtual allocation, heap and page eventsWhat grew, leaked or caused hard faults
Generic eventsCustom and provider-specific eventsWhen an application marker or phase occurred
System activityProcess, thread and image load eventsWhat started, ran and loaded during the trace
Common WPA data sources and their purpose

The analysis workspace and its views

The WPA interface is built around the Graph Explorer on the left and one or more analysis tabs on the right. An analyst drags a graph into a tab, where it appears as a time-series chart above a configurable data table. Selecting a time range in any graph filters every other view to the same interval, which makes correlating CPU, disk and wait activity straightforward.

The data table is a pivot table with a gold bar: columns to the left of the gold bar act as grouping keys, and columns to the right are aggregated. Moving the Stack column left of the bar produces a call-tree view with weights, while grouping by Process and Thread isolates a single culprit. Saved arrangements are stored as WPA profiles (.wpaProfile), which teams share so that every engineer reads a trace the same way.

  • Flame graphs summarize sampled stacks visually, with wide bars marking the hottest code paths.
  • Regions of interest files mark named phases, such as boot stages, so durations appear directly in the table.
  • Zooming and annotations let an analyst document a finding inside the session before exporting it.

How WPA compares with other Windows performance tools

WPA is retrospective and event-level, whereas most other Windows tools are live and counter-based. Choosing the right tool depends on whether the problem is visible right now, reproducible on demand or intermittent.

ToolData modelBest suited for
Task ManagerLive summary countersQuick check of which process is busy
Resource MonitorLive per-process detailIdentifying file, network or handle activity now
Performance MonitorSampled counters over timeLong-term trends and threshold alerts
Process ExplorerLive process tree with threadsInspecting handles, DLLs and thread stacks interactively
Windows Performance RecorderETW capture onlyRecording the trace that WPA later opens
Windows Performance AnalyzerRecorded ETW events with stacksRoot-cause analysis of delays, hangs and boot time
WPA and neighboring diagnostic tools

The key distinction is causality versus symptoms. Performance Monitor can show that disk queue length spiked, but only an ETW trace in WPA reveals which thread issued the I/O and which function was waiting for it.

Typical investigations and how to approach them

Most WPA sessions follow the same pattern: reproduce the problem while recording, narrow the timeline to the slow interval, then drill into the resource that dominates it. The recording profile in WPR determines which graphs are available, so the capture must match the question.

SymptomRecording profileWhere to look in WPA
Slow boot or logonBoot trace with first-level triageBoot phases and regions of interest
High CPU in one appCPU usage profileSampled CPU usage grouped by stack
UI freezes or hangsCPU plus wait analysisPrecise CPU usage, ready-thread stacks
Stuttering or dropped framesGPU activity and CPUGPU utilization and DPC/ISR duration
Gradual memory growthHeap or VirtualAlloc tracingOutstanding allocations by stack
Slow file operationsDisk and file I/ODisk usage by path and service time
Decision guide for common WPA scenarios

Long-running DPC and ISR activity deserves special attention, because a single misbehaving driver can delay every thread on a core. WPA presents these durations in their own graph, making it one of the few tools that can attribute audio glitches or input lag to a specific driver module.

Limitations and common mistakes

WPA is powerful but unforgiving. Traces grow quickly, often hundreds of megabytes per minute with stack walking enabled, and analysis requires knowledge of scheduler and I/O internals. Most failed investigations trace back to capture mistakes rather than to the analyzer itself.

MistakeConsequenceRemedy
No symbols loadedStacks show only hexadecimal offsetsSet the symbol path and load symbols
Trace too longHuge files and slow loadingUse circular buffer mode and stop soon after the issue
Wrong recording profileRequired graphs are missingChoose providers that match the symptom
Reading sampled CPU for waitsIdle waiting time is invisibleUse precise CPU usage for wait analysis
Ignoring observer overheadTimings slightly inflatedCompare with an untraced baseline
Frequent mistakes and their remedies

Traces can also contain sensitive information, including file paths, process names and user names, so they should be handled as confidential diagnostic data when shared outside an organization.

In simple terms

Windows Performance Analyzer is like a slow-motion replay for a computer. First, another tool records everything Windows does for a short time. Then WPA plays that recording back as charts and tables.

You can pause on the exact second when the computer felt slow. You can see which program was busy and what it was waiting for. The key idea is simple: WPA explains the cause of slowness, not just the fact that the computer was slow.

A practical example

An IT administrator at a mid-sized accounting firm receives complaints that new laptops take about 90 seconds to reach a usable desktop after logon. Task Manager shows nothing unusual once the desktop appears, so the administrator records a boot trace with Windows Performance Recorder on one affected laptop and opens it in WPA.

The boot regions of interest show that the post-logon phase alone lasts 62 seconds. Grouping disk usage by process reveals that a legacy inventory agent reads thousands of small files during logon, while precise CPU usage shows Explorer threads waiting on that agent’s file locks. After the agent is reconfigured to start with a two-minute delay, a second trace confirms that the logon time dropped to about 25 seconds.