Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

How to: Gather Sampling Data using Command-line Tools

Visual Studio 2005

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

  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

Community Additions

© 2015 Microsoft