tags:

views:

30

answers:

1

When a user performs any action on a page, the request is sent to the server. The server processes the request and sends the files necessary to render the page to the client.

I want to track the time taken by the server for every page load, and log it to database for further analysis.

I calculated the time that each action takes on the serverside, but it doesn't truly correlate with the page. There can be multiple redirects before a page is rendered, and hence multiple actions, and it might change based on workflow and exceptions .

Basically, I want the total serverside execution time for the page just like YSlow (without the queueing, latency and client side processing).

How do you track your server side speed? Anyone know of a better way to accomplish the same thing?

+1  A: 

I don't have any experience with this, but you could use a combination of ajax and server side metrics. Log when the server side first starts executing and then have an ajax call fire when the page is done loading and subtract the two. It's somewhat dirty, but it should work

Chris Thompson