ASP.NET MVC2 Code Profiling

The topic seems close here: ASP.NET site profiling with EQATEC Profiler

However, the free version of Equatec that I downloaded today does not have any flags for ASP.NET and the regular network. I indicated the application path to my bin directory in my project folder, and also started hosting localhost for my application through Visual Studio.

I am open to other free tools. I'm just looking for something to profile the code to optimize some reflection that we use.

I use a professional edition, so unfortunately I do not have access to MS code profiling.

I want to perform performance profiling at this point.

Is the free version of Equatec capable of running ASP.NET applications?

Is there a free profiler (I understand that this was asked earlier, and it seems that little has appeared, but paid apps, but you might as well ask)?

Is MVC a special thing to look for in a profiler?

+4
source share
3 answers

The guide is not really outdated: the few steps described in fooobar.com/questions/70200 / ... (last edited on April 8) still better describe how you should profile ASP.NET applications. Please note that you should look at the accepted answer, which currently has 16 priorities.

After you have built the tool application, it is important to note that in the above stackoverflow answer there is step 3: “Download the application”. This means that you must force the application to load, and this is the only step that the profiler cannot automatically take for ASP.NET applications.

Usually you download the application by simply navigating to it in the browser, so you just need to do this after the build step. When your (instrumental) code is activated, its profiling part will be spring in life and will connect to the profiler, and then you can take pictures.

Note that ASP.NET does not need a main entry point. This is just an added convenience for automatic snapshot for real executable files with the main method.

+1
source

Comprehensive profiling tools still look pretty expensive. I like dotTrace , but they are not free.

You did not specify which profiling you want to do. Are you trying to understand more about the memory usage of your application or CPU usage?

There is nothing special about MVC applications when it comes to profiling. You will need a profiler that can run ASP.NET. In addition, MVC is just a regular group of class libraries.

Have you tried the free CLR Profiler ? It processes ASP.NET and displays both memory and some method invocation activity. It's not as difficult as saying dotTrace, but it is a great free alternative if you are starting out.

+2
source

You just need a .NET profiler.

Profiling WebForms, MVC, SharePoint, Sitecore, Ektron, Sitefinity, or any other .NET-based product does not change this.

0
source

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


All Articles