ASP.NET Performance

I have a page with 5 usercontrols. This page is time consuming. I load this page in an iframe ( jQuery Colorbox Plugin ). How can I measure load time for each user control? And checking which user control or action is causing this problem for me.

+4
source share
3 answers

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

More details:

Click "Analysis" → "Run Performance Wizard" ... in the VS2010 main menu. (I have VS Ultimate, I'm not sure if this is available in all versions.

Select Toolbox. Click "Next. (Experiment with all parameters !: D)

Select the project you want to analyze. Click "Next."

Select Enable Inter-Level Interaction, if necessary. Click Next, then click Finish.

VS now launches IE and launches your application. Follow the steps in your application that you want to verify. Close IE.

A profiling report will be displayed, in which profiling sessions will be described in detail. Pay particular attention to the Hot Way.

Have fun debugging!

+3
source

Your choice should be a trace

ASP.NET tracing allows you to view diagnostic information about a single request for an ASP.NET page. ASP.NET tracing allows you to track the page’s execution path, display diagnostic information at runtime, and debug your application. ASP.NET tracing can be integrated with system-level tracing to provide multiple levels of trace output in distributed and tiered applications.

ASP.NET Trace Overview

Tracing in ASP.NET

+4
source

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

Tracing a request may not give you enough information to find the bottleneck, as the slowness on your page may not match ASP.NET.

+2
source

Source: https://habr.com/ru/post/886723/


All Articles