ASP.NET MVC application profiling

谁说我不能喝 提交于 2019-12-03 20:48:45

If you're not a database boy like me, you'll love using Glimpse.

Glimpse is the diagnostics platform of the web.

Providing real time diagnostics & insights to the fingertips of hundreds of thousands of developers daily.

So you can start by grabbing Glimpse from NuGet.

PM> Install-Package Glimpse.MVC5

PM> Install-Package Glimpse.EF6

Initial configuration is the following:

  • In the configSections:

  • And after that:

Sorry for that but i waste 10 minutes trying to add xml code/quote/everything. For further configuration and others, here: http://getglimpse.com/Docs/Configuration

After that you must navigate to /glimpse.axd or what path did you specified there and enable (it's a cookie).

Here is a site that is using Glimpse so you can see what's giving to you. Render view time/wire time/sql time/ajax profiling & so on.. http://play.getglimpse.com/

It is very extensible having plugins and so on. You can search.

And here is a talk that you can watch for reviewing some features and to convince you to use glimpse: https://www.youtube.com/watch?v=IGMYogdKYyw

And if you need to see ONLY the sql queries not the whole (rendering process etc.) you can press the glimpse circle and go to the sql tab. You'll have a view like the following:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!