Last post Jan 02, 2008 10:07 PM by nmahesh567
Dec 20, 2007 09:25 PM|nmahesh567|LINK
I would like to measure response time of each page separately in my application. This includes first time load and then subsequent post back caused due to sort or paging. Kindly let me know of any tools are available for the same.
I tried enabling tracing but it does not give a specific single time that the web page took to execute.
Dec 21, 2007 02:46 AM|pinakin2in|LINK
There are often requirements that you need to know how much time a particular code path takes during execution. You may need this information when you are comparing various prototypes in the design stage or profiling the APIs or critical code paths during
the development stage. You need to instrument your code to calculate the time duration and log it in an appropriate event sink such as Event Log or Windows Trace Session Manager. The timing code in your application may look like the following.
QueryPerfCounter myTimer = new QueryPerfCounter();
// Measure without boxing
for(int i = 0; i < iterations; i++)
// do some work to time
// Calculate time per iteration in nanoseconds
double result = myTimer.Duration(iterations);
or u can check it out on http://msdn2.microsoft.com/en-us/library/ms998579.aspx
Dec 21, 2007 02:24 PM|nmahesh567|LINK
Thanks for the reply but as my post says I am interested in total page execution time.
Dec 21, 2007 02:51 PM|ewitkows|LINK
Try turning on tracing in your application. it may *slightly* increase page load times, but it will still give you some handy information.
In your web.config, within the system.web node, add the following:
<trace enabled="true" pageOutput="true" localOnly="true"/>
Dec 21, 2007 10:33 PM|oPc|LINK
My first thought would be to use the IIS logs for execution times. You can use the Extended Properties in IIS to turn on time-taken. With this property selected, your IIS log will show the time, in milliseconds that the page took to render.
By parsing the IIS log, you can find the page that was executed, the time it was executed and the amount of time it took for execution. The log also displays the IP address of the client so you can piece together a session. You can USUALLY find the iis logs
Does this help?
Dec 22, 2007 04:51 PM|nmahesh567|LINK
Thanks oPc. It makes sence.
Jan 02, 2008 08:43 PM|ihaathi|LINK
For instant gratification, you could also use the
faster fox add-on in firefox :)
Jan 02, 2008 10:07 PM|nmahesh567|LINK
Thanks! Will let you know.