Understanding ASP.net Trace

I'm not sure I understand how to read the traceback. Can someone shed some light on this for me?

If I see this:

Event         From First    From Last
Begin Load    0.016423      0.000006
End Load      10.201956     10.185533
.... 
Begin Render  10.477927     0.000006
End   Render  10.528951     0.051025  (This is last line)

      

I have no idea how to read this: (What does this mean? I read from left to right? Top to bottom? I read it from each "pair"? For example "begin render" and "end render" took the difference (10.52 - 10.4)

I want to see how long my page as a whole lasted, and then see how long each event took. The MSDN page didn't shed light on this for me / made me more confused.

Also, why are these times different (worse) than Firebug's output?

Thank!

+3


source to share


1 answer


You read this both from top to bottom and from left to right. Each line corresponds to some event, and the fields in the line are the time taken to execute.

If we look at the first line, it Begin Load

will mark the beginning of the event OnLoad

(this happens on impact Page_Load

). The first field From First

denotes the total time since the first call of the request to the server, so in this case 0.016423

seconds. From Last

indicates the time since the last event. Since Begin Load

it was the first event to be traced, which is 0 as there is no previous event to compare. End Load

which marks when completed OnLoad

, took 10.201956

seconds from the original request and took 10.185533

seconds from the previous traced event, which is the event Begin Load

. This essentially means that your event OnLoad

(and therefore the method Page_Load

) took 10 seconds.



Consider as another example Begin Render

. It took 10.477927

seconds from the moment the server was contacted until the event was raised Begin Render

. It took 0.000006

seconds from the previous event (no matter what happened, you didn't turn it on, so I couldn't tell). End Render

took 0.051025

seconds from the previous event that was Begin Render

, so your render event took ~ 0.05 seconds.

+1


source







All Articles