Sample Instructions with WindowsPerf and Arm SPE
Introduction
Overview of Arm Statistical Profiling Extension
Setup
WindowsPerf Sample using SPE
WindowsPerf Record using SPE
Summary
Next Steps
Sample Instructions with WindowsPerf and Arm SPE
Who is this for?
This is an introductory topic for developers who would like to learn about sampling CPU instructions with WindowsPerf and the Arm Statistical Profiling Extension (SPE).
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Use WindowsPerf with a native Windows on Arm workload.
- Describe the basic concepts of sampling with Arm SPE.
- Explore the WindowsPerf command line.
- Build CPython from sources for Windows on Arm (AArch64).
Prerequisites
Before starting, you will need the following:
- A Windows on Arm desktop or development machine, with CPU support for SPE.
- An installation of WindowsPerf .
- An installation of Visual Studio .
- An installation of Git .
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
wperf sample and wperf record to start the workload and capture samples. Finally, you’ll review the results with source annotation and disassembly.Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
3.8.0. Download the release asset and select the WindowsPerf build in the SPE/ subdirectory.python_d.exe, which you build from CPython sources in debug mode for Windows on Arm (AArch64).-- to separate wperf options from the arguments passed to python_d.exe. Everything after -- is forwarded to the Python process.--annotate and --disassemble options to review where sampled instructions map to source code and assembly.