I’m looking for a way to track how long it took for a page to be generated by the server. I know I can use Trace to track this but I need a way to display this per page.
Its ASP.Net MVC 2
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yep the Derin Suggestion is the standard Way to do it in an ASP.NEt application, i would just suggest add an if so it does not interfere with non-HTML responses:
EDIT: added complete implementation
you can also add some style to it…
And remember to register your Module in WebConfig inside httpModules Section:
For a Complete Reference about this check the Pro ASP.NET MVC Framework by Steven Sanderson – Chapter 15 – Performance, Monitoring Page Generation Times.
EDIT:(comment @Pino)
Here is the example for my project:
alt text http://www.diarioplus.com/files/pictures/example_performance.JPG