How to Profile a Web Site or Web Application Using the Performance Wizard

The Performance Wizard enables you to add tier interaction (TIP) data, JScript performance data, or both to the collected profiling data. The TIP option collects data from server-side processes. The JScript profiling collects data from scripts that are running on a local or remote Web site. In most cases, you should choose only one of the options.
You can use the Performance Wizard to collect performance data for an ASP.NET Web application. You can profile a Web application that is open in Visual Studio, or you can profile an ASP.NET Web site that is located on your local computer and not open in the Visual Studio IDE.
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.
- To profile a Web site project
- Open the ASP.NET Web project in Visual Studio Premium or Visual Studio Ultimate.
- On the Analyze menu, click Launch Performance Wizard.
- On the first page of the wizard, select a profiling method, and then click Next.
"Note that the concurrency visualizer profiling method is not available for web applications".
In the Which application would you like to target for profiling? drop-down list, make sure that the current project is selected, and then click Next.
On the third page of the wizard, you can choose to add tier interaction profiling (TIP) data, data from the JavaScript running in the Web pages, or both.
To collect tier interaction, select the Enable Tier Interaction Profiling check box.
To collect data from the JavaScript running in the Web pages, select the Profile JavaScript check box.
Click Next On the fourth page of the wizard, click Finish.
A performance session is created for the ASP.NET application, and the Web site is started in the browser. Exercise the functionality that you want to profile, and then close the browser.
The profiler generates the data file and displays the Summary view of the data in the Visual Studio main window.
To profile a Web site without opening a project in Visual Studio
- Open Visual Studio Premium or Visual Studio Ultimate.
- On the Analyze menu, click Launch Performance Wizard.
- On the first page of the wizard, select a profiling method, and then click Next.
- select the Profile an ASP.NET or JavaScript application option, and then click Next.
- In the What URL or Path will run your web application box on the third page of the wizard, enter the URL to the application home page, and then click Next.
- For a server (IIS) based Web site, type a URL such as http://localhost/xxxx/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, type a path such as file///c:\WebSites\xxxx\default.aspx. This causes the ASP.NET application located at c:\webSites\xxxx to be profiled and the page http://localhost:nnnn/xxxx/default.aspx to be started in Internet Explorer to start the session.
On the third page of the wizard, you can choose to add tier interaction profiling (TIP) data, data from the JavaScript running in the Web pages, or both.
To collect tier interaction, select the Enable Tier Interaction Profiling check box.
To collect data from the JavaScript running in the Web pages, select the Profile JavaScript check box.
Click Next. On the fourth page of the wizard, click Finish.
A performance session is created for the ASP.NET application, and the Web site is started in the browser. Exercise the functionality that you want to profile, and then close the browser.
The profiler generates the data file and displays the Summary view of the data in the Visual Studio main windows.