How can I track ASP.NET for every request

How can I track ASP.NET for every request. I know that I can turn on the analysis / performance of the application and see all kinds of statistics about what methods fall in, how much time is spent on each, however I would like to generate similar reports for each request. Could you enable application analysis and analysis for each request, is there a good tool for this?

I am on VS2008 (with resharper), IIS7, ASP.NET, .NET 3.5 and Windows 7-64

+7
c # profiling
source share
2 answers

You should be able to enable page-level tracing features. This was available after ASP.NET 1.1, and you included it by adding a property to the page directive - for example.

<%@ Page Language="vb" AutoEventWireup="false" Trace="true" Codebehind="whatever.aspx.vb" Inherits="Example.Whatever"%> 

You can also include it from code. I usually put it in code behind the page load event, so I can include it based on the custom attribute of the query string.

 If Request.QueryString("trace") = "true" Then Trace.IsEnabled = True End If 

Of course, this code should be removed before deployment to production.

I'm not sure if this is what you are looking for - since you mention that reports and tracing are usually used as a debugging tool, but it has a lot of information that you can use to troubleshoot page performance.

+3
source share

Another option you can try if the Trace parameter above is not what you are looking for is to convert the failed request trace to IIS 7.0. I did not use it myself, so your YMMV, but in case you are interested, this is a link to a good article on IIS.NET about it.

+1
source share

All Articles