How can I generate a complete trace.axd in ASP.NET MVC?

前端 未结 1 635
逝去的感伤
逝去的感伤 2021-02-14 19:14

On my application, after enabling ASP.NET Tracing in an ASP.NET MVC application, the time calculation statistics were off by a factor of 5000.

I have a page that is taki

相关标签:
1条回答
  • 2021-02-14 19:34

    It could be that the time for the action method itself is not the big part of the execution. Try checking the time between OnResultExecuting/OnResultExecuted. This is basically the time to actually render the page in HTML whereas OnActionExecuting/OnActionExecuted is (basically) the time to set up the data for the view.

    Note that if you are using LINQ, the data queries themselves may be deferred until the page is rendered (the model enumerated). That is, the slowness may not be due to page complexity but data access even when the time is taken in executing the result.

    0 讨论(0)
提交回复
热议问题