|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
You can use VSPerfMon tool to collect performance data for an application; typically this tool is launched by VSPerfCmd.exe. VSPerfMon displays additional information about process attach or detach which is not available by using the VSPerfCmd tool. To view this information, start VSPerfMon in a separate window. To invoke VSPerfMon use the following syntax:
The following table describes VSPerfMon tool options:
Redirects output to the specified file name.
Starts performance monitor for instrumented profiling.
Starts the performance monitor for sampling profiling.
Starts the performance monitor for code coverage collection.
Allows client access to the performance monitor from the specified account.
Specifies a performance counter to include in data collection. You can specify more than one counter.
cfg is counter configuration string with the following format:
where group is one of the following:
These counter groups are defined in the Intel processor manual.
<friendly name>[,Reload[,Name]]This option is available only in TRACE mode.