Until Visual Studio 2017, there is vsperf.exe.
From Visual Studio 2019, even if I turned on the check box "C++ Profiling Tools" at Visual Studio 2019 Installer ("1" below), but there is no vsperf.exe.
Is vsperf.exe deprecated? If it is, what is the alternative?
There are some vsperf*.exe files in Visual Studio 2019 installed directory, such as vsperfmon.exe, vsperfcmd.exe, vsperfsrv.exe, vsperfreport.exe, vsinstr.exe, etc. What are these executable files?
Here is what I have found:
See https://github.com/PoulChapman/visualstudio-docs-public-personal/blob/master/docs/profiling/vsperfmon.md
You can launch
VsPerfCmd
like this:Then run the application you want to profile, and finally:
This will produce the
myoutputfile.vsp
that you can open with Visual Studio.Here are more options you can choose:
The
Sample
option is probably your best default choice whileTrace
instruments your code and causes your program to slow down but it records the time in each method so it can be more accurate.See https://github.com/PoulChapman/visualstudio-docs-public-personal/blob/master/docs/profiling/vsperfcmd.md
Here is how you could setup a trace:
See also https://www.codeproject.com/Articles/520313/Analyzing-profiling-data-from-vsperfcmd