Analyze MSVC build performance with vcperf.exe and ETL traces from GitHub
Copilot CLI.
- Captures diagnostic traces for MSVC builds
- Generates structured
/jsonAnalysisreports - Identifies expensive headers, functions, and template instantiations
- Recommends targeted build-performance improvements
- Measures clean and iterative builds before and after changes
- Windows with the MSVC toolchain
- NuGet CLI (
nuget.exe) onPATH - Administrator privileges, or a one-time
vcperf /grantusercontrol - Network access to the public Visual C++ package feed
The session-start hook installs or updates the newest published
Microsoft.Cpp.vcperf package under
%LOCALAPPDATA%\vcperf\build-perf-cpp.
The copilot-plugins marketplace is registered by default in Copilot CLI:
copilot plugin install build-perf-cpp@copilot-pluginsStart Copilot CLI in an MSVC project and ask:
Improve the build performance of this project.
The build-performance-analysis skill captures a trace, ranks build
bottlenecks, recommends changes, and compares uninstrumented before-and-after
build measurements.
sessionStartinstalls or updatesvcperf.exe.userPromptSubmittedcreates a correlation identifier for trace artifacts.
Both hooks operate locally and write only beneath %LOCALAPPDATA%\vcperf.
- Ion Todirel
- Eve Silfanus
