How to: Create a Performance Session for ASP.NET Applications

You can use the Performance Wizard to create a performance session for an ASP.NET application. A performance session can be created with or without opening a project in Visual Studio.

Depending on User Access Permissions settings that an administrator has made available, an individual user might or might not have security permission to create a profiler session on the computer that hosts the ASP.NET process. The following examples illustrate possible differences among users:

  • Some users may access advanced profiling features when the Administrator has set the driver and service to start.

  • Domain users may access sample profiling only.

  • Some users my deny access to profiling to all other users.

For more information, see Profiling and Windows Vista Security and the ADMIN options in VSPerfCmd.

To create a performance session for ASP.NET application project

  1. Open the ASP.NET Web project in Visual Studio Team Edition for Developers.

  2. On the Analyze menu, click Launch Performance Wizard.

  3. In the Which of the following available targets would you like to profile? drop-down list, make sure the current project is selected, and then click Next.

  4. Choose Sampling or Instrumentation to specify a profiling method, and then click Next.

  5. Click Finish.

    A performance session is created for the ASP.NET application.

To create a performance session for ASP.NET application manually

  1. Open Visual Studio Team Edition for Developers.

  2. On the Analyze menu, click Launch Performance Wizard.

  3. From the Which of the following available targets would you like to profile? drop-down list, select Profile an ASP.NET application, and then click Next.

  4. In the What local URL or Path will run your web application box, enter the URL to the application home page, and then click Next.

    • For a server (IIS) based Web site, enter a URL such as, https://localhost/MySite/default.aspx. This causes the ASP.NET application on the local computer at the application root of MySite to be profiled, and the page default.aspx on that site to be started in Internet Explorer to start the session.

    • For a file based Web site, enter a path such as, c:\WebSites\MySite\default.aspx. This causes the ASP.NET application located at c:\webSites\MySite to be profiled and the page http://localhost:nnnn/MySite/default.aspx to be started in Internet Explorer to start the session.

    For more information, view the property pages for an ASP.NET target binary.

  5. Choose Sampling or Instrumentation to specify a profiling method, and then click Next.

  6. Click Finish.

    A performance session is created for the ASP.NET application.

See Also

Concepts

Understanding Instrumentation Data Values in Profiling Tools

Understanding Sampling Data Values in Profiling Tools

Other Resources

Overviews (Profiling Tools)

Configuring Performance Sessions for Profiling Tools