|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|
How to: Gather Sampling Data using Command-line Tools
You can use performance tools from within the IDE or from a command prompt. The steps listed below show you how to use sampling method from a command prompt
Command-line tools are located in C:\Program Files\Microsoft Visual Studio 8\Team Tools\Performance Tools> directory.
Sampling application using command-line tool
Open a command line window. At the command prompt, run the following command to start VSPerfCmd:
C:\<path>vsperfcmd -start:sample -output:c:\<path>report_name
At the command prompt, run the following command to launch your application:
Run application's scenarios to generate data.
Exit the application.
At the command prompt, run the following command to shutdown VSPerfCmd:
A report, report_name.VSP, is created in the directory specified in step 1. Open this report in Visual Studio to determine performance problems.