The Spinlock Action

The spinlock action produces a text file listing information relevant to spinlock activity. The usage for this action is:

-a spinlock [-summary] [-counts [n] ] 

Option Description


Summarize the Spin Lock event information into a tab delimited format.

count [n]

Maximum number of files to show


Target Platforms

Windows Performance Analyzer (WPA) Spin Lock analysis is available for x64 architectures. Spin Lock instrumentation is supported on Windows 7 and Windows Server 2008 R2.


WPA for Windows 7 and Windows Server 2008 R2 includes the ability to capture spinlock events on x64 architectures. WPA Spin Lock analysis supports Normal Spin Locks and Queued Spin Locks. For more information on Spin Locks, please see the Spin Locks section on MSDN.

WPA Spin Lock Analysis is based on the Event Tracing for Windows (ETW) event architecture. To reduce overhead, ETW Spin Lock instrumentation is sample based. The sampling frequency can be tuned through WPA command line options. For more information on configuring WPA for Spin Lock event collection, please see the Collecting Spin Lock Data section of this document.

This section includes the following topics:

Preparing the Spin Lock Event Collection Environment

Collecting Spin Lock Data

Evaluating Spin Lock Data



Send comments about this topic to Microsoft

Build date: 5/5/2012