Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

NoteNote

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.