Page Render Time in MVC

后端 未结 4 560
误落风尘
误落风尘 2021-02-06 05:45

Q: How do I calculate the total time it takes to render an MVC page and display the time on the master page.

In Asp.net Web Form I created a Base page class like so:

4条回答
  •  深忆病人
    2021-02-06 06:41

    The best way to do this is calculate the request timing .. Begin Request and End Request .... Check out this great post:

    http://haacked.com/archive/2008/07/02/httpmodule-for-timing-requests.aspx

提交回复
热议问题