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

Note

Command-line tools are located in C:\Program Files\Microsoft Visual Studio 8\Team Tools\Performance Tools> directory.

Sampling application using command-line tool

  1. 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

  2. At the command prompt, run the following command to launch your application:

    C:\<path>vsperfcmd -launch:application_name

  3. Run application's scenarios to generate data.

  4. Exit the application.

  5. At the command prompt, run the following command to shutdown VSPerfCmd:

    c:\<path>vsperfcmd -shutdown

    A report, report_name.VSP, is created in the directory specified in step 1. Open this report in Visual Studio to determine performance problems.

See Also

Other Resources

Command-line Tools