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
Open the ASP.NET Web project in Visual Studio Team Edition for Developers.
On the Analyze menu, click Launch Performance Wizard.
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.
Choose Sampling or Instrumentation to specify a profiling method, and then click Next.
Note
For more information, see Understanding Instrumentation Data Values in Profiling Tools and Understanding Sampling Data Values in Profiling Tools
Click Finish.
A performance session is created for the ASP.NET application.
To create a performance session for ASP.NET application manually
Open Visual Studio Team Edition for Developers.
On the Analyze menu, click Launch Performance Wizard.
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.
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.
Choose Sampling or Instrumentation to specify a profiling method, and then click Next.
Note
For more information, see Understanding Instrumentation Data Values in Profiling Tools and Understanding Sampling Data Values in Profiling Tools
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