Friday, June 14, 2013

CLR Profiler – Analyzing Object Memory Allocation for a Web Application

The CLR Profiler provides various types of reports which help in determining the performance of the application and tuning it. The “Histogram Allocated Types” report shows the various types of objects which were created and allocated during the execution of the application. This report shows you on the share of object allocation to the Small Object Head and the Large Object Heap.

To view the “Histogram Allocated Types” report, use the following steps.
Start CLR Profiler.
1.    Make sure that the following check boxes are selected:
o    Profiling active
o    Allocations
o    Calls
2.    On the File menu, click Profile ASP.NET.
CLR Profiler shuts down Internet Information Services (IIS), adds environment variables that are needed for profiling, and restarts IIS. CLR Profiler then prompts you to load the ASP.NET application and waits for the ASP.NET worker process to start.
3.    Use Microsoft Internet Explorer to browse to the ASP.NET application you want to profile.
You can also run your Web application by using a client tool such as Microsoft Application Center Test (ACT.)
4.    When you have finished running the application, click Kill ASP.NET in the CLR Profiler main window.
CLR Profiler shuts down IIS, removes the environment variables, and restarts IIS.


Once the profiler is stopped, it will automatically display the Summary Report.
     Close the   Summary report

7. Click on View -> Histogram Allocated Types option to open the Report

The following screen shows on how the “Histogram Allocated Types” report details will be displayed for a simple Web Application.




Search Flipkart Products:
Flipkart.com

No comments: