Shahin
Shahin

Reputation: 12843

ASP.NET measure performance

I have a Page with 5 usercontrols. This page takes long time to load. I am loading this page in Iframe(jQuery Colorbox Plugin). how can I measure loading time for each usercontrol ? And checking which usercontrol or action causes this problem for me.

Upvotes: 4

Views: 1903

Answers (3)

TheHurt
TheHurt

Reputation: 1610

Use the VS2010 built in profiler. It will show you the code paths that have the highest cost.

Details:

Click Analyze->Launch Performance Wizard... on the VS2010 main menu. (I have VS Ultimate, I am not sure if this is available in all versions.

Select Instrumentation. Click Next. (experiment with all the options! :D)

Choose the project you want to analyze. Click Next.

Select Enable Tier Interaction Profiling if needed. Click Next, then click Finish.

VS will now launch IE and run your app. Perform the actions in your application that you want to inspect. Close IE.

The profiling report will be shown that will give the details of the profiling session. Pay particular attention to the "Hot Path".

Have fun debugging!

Upvotes: 3

Esteban Araya
Esteban Araya

Reputation: 29654

dotTrace is my favorite profiler; it's really, really helpful and detailed.

Request tracing may not give you enough information to find the bottle-neck, as the slowness on your page may not be ASP.NET related.

Upvotes: 2

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

Your Choice should be Tracing

ASP.NET tracing enables you to view diagnostic information about a single request for an ASP.NET page. ASP.NET tracing enables you to follow a page's execution path, display diagnostic information at run time, and debug your application. ASP.NET tracing can be integrated with system-level tracing to provide multiple levels of tracing output in distributed and multi-tier applications.

ASP.NET Tracing Overview

Tracing in ASP.NET

Upvotes: 4

Related Questions