How to: Create a Performance Session for a Test
A Performance Session is a collection of settings that you configure to determine how an application is profiled. In addition, the Performance Session generates and stores reports on various aspects of running code, such as functions calls, memory allocations, and time that is spent running functions.
You can create performance sessions only if you have Visual Studio Team Edition for Developers or Microsoft Visual Studio 2005 Team System installed.
To create a performance session for a test
In the Test Results window, right-click the results of a test.
Click Create Performance Session.
The first page of the Performance Wizard is displayed.
In the Performance Wizard, the Specify the profiling method page is displayed. On this page, select the scope of the performance session that you are configuring.
Choose Sampling or Instrumentation, and then click Next.
The final page of the Performance Wizard displays the choice you made.
The Performance Explorer window is displayed.
In the Performance Explorer window, under your test project, expand the Targets folder.
A performance target for your test is displayed.
(Optional) Right-click the performance target for your test run, and click Instrument.
Performance Target Properties are displayed in the Properties window, where you can now set instrumentation- and launch-related properties for your test run. For information about these settings, see Profiling Tools Performance Session Overview.
(Optional) Right-click the performance target for your test, and then click Properties.
The Object Property Pages dialog box is displayed. You can use this to customize instrumentation options for your performance session. For information about these settings, see Profiling Tools Performance Session Overview.
To start the performance session, click the Launch button on the Performance Explorer toolbar.
This generates a performance report, which has the extension .vsp.
For information about how to view performance data, see Profiling Tools Report Overview.