开发者

Determine page load times in ASP.Net MVC

开发者 https://www.devze.com 2023-01-03 08:49 出处:网络
I know there are a lot of tools out there on the client that let you know how long a page takes to load but what could I do on the server to see how long it takes开发者_Go百科 an ASP.net MVC page to r

I know there are a lot of tools out there on the client that let you know how long a page takes to load but what could I do on the server to see how long it takes开发者_Go百科 an ASP.net MVC page to render? I don't need to know how long it took all of the images to load and the javascript to start running, I'd just like to know how long all of the server-side logic took to run and potentially log that info to a db...


You can add code to global.asax for OnBeginRequest and OnEndRequest, or create a custom HttpModeule or HttpHandler.

0

精彩评论

暂无评论...
验证码 换一张
取 消