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.

To create a performance session for a test

  1. In the Test Results window, right-click the results of a test.

  2. Click Create Performance Session.

    The first page of the Performance Wizard is displayed.

  3. Click Next.

    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.

  4. Choose Sampling or Instrumentation, and then click Next.

    The final page of the Performance Wizard displays the choice you made.

  5. Click Finish.

    The Performance Explorer window is displayed.

  6. In the Performance Explorer window, under your test project, expand the Targets folder.

    A performance target for your test is displayed.

  7. (Optional) Right-click the performance target for your test run, and click Instrument.

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

  9. (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.

  10. To start the performance session, click the Launch button on the Performance Explorer toolbar.

    This generates a performance report, which has the extension .vsp.

  11. For information about how to view performance data, see Profiling Tools Report Overview.

See Also

Concepts

Profiling Tools Performance Session Overview

Profiling Tools Report Overview