简体   繁体   English

ASP.Net Web应用程序的探查器?

[英]Profilers for ASP.Net Web Applications?

I was recently wanting to do some profiling on an ASP.Net project and was surprised to see that Visual Studio (at least seems to be) lacking a profiler. 我最近想对ASP.Net项目进行一些分析,但惊讶地发现Visual Studio(至少似乎是)缺少探查器。

So my question is what profiler do you use for ASP.Net? 所以我的问题是,您对ASP.Net使用什么探查器? Are there any decent ones out there that are free? 有没有像样的免费东西呢?

I've seen a few general .Net profilers but have yet to see one that can be used with ASP.Net.. 我见过一些通用的.Net分析器,但尚未看到可与ASP.Net一起使用的分析器。

Part of the answer may depend on whether your wanting performance or memory profiling. 答案的一部分可能取决于您想要的性能还是内存配置文件。 There is a performance profiler in SharpDevelop, but it doesn't support ASP.Net (at least not last time I checked). SharpDevelop中有一个性能分析器,但它不支持ASP.Net(至少不是我上次检查的时间)。

For Memory Profiling, the only free profiler I know of is the CLR Memory Profiler . 对于内存分析,我知道的唯一免费的探查器是CLR内存探查器 Its been a while since I've used it, but I'm fairly sure it supports ASP.Net without issues. 自从我使用它已经有一段时间了,但是我很确定它支持ASP.Net,没有问题。

dotTrace from Jetbrains is hands down the best profiler I've used. Jetbrains的dotTrace是我使用过的最佳分析器。 It's easy to use and easy to interpret the results. 它易于使用且易于解释结果。 The biggest down side is the price. 最大的缺点是价格。

Redgate has the Ants Profiler for both memory and performance . Redgate具有用于存储性能的Ants Profiler。 It's been around for a long time, but I personally find it harder to use than the Jetbrains profiler. 它已经存在了很长时间,但是我个人觉得它比Jetbrains分析器更难使用。 Once again the price for these products are not insignificant. 这些产品的价格再一次并不微不足道。

If all your interested in is memory profiling, then the SciTech profiler is really nice. 如果您只对内存分析感兴趣,那么SciTech profiler非常好。 It has some very nice features (like unmanaged memory usage tracking), and the price is much more approachable than both the Redgate and Jetbrains products. 它具有一些非常好的功能(例如非托管内存使用情况跟踪),而且价格比Redgate和Jetbrains产品都更加平易近人。

All of these work fine with ASP.Net, so no worries there. 所有这些都可以在ASP.Net上正常工作,因此不用担心。 They also have some limited trial period that you can use them without paying, but it is typically something like 14 days. 他们也有一些有限的试用期,您可以不付费使用它们,但是通常需要14天左右。

Most profiles can be used with asp.net, We use redgate's ants profile and sometimes dotTrace and both can profile Asp.net just fine. 大多数配置文件都可以与asp.net一起使用,我们使用redgate的ants配置文件,有时使用dotTrace,两者都可以对Asp.net进行配置。

there is really not a lot of difference between Asp.net apps and say windows forms apps, the only difference is instead of attaching to your application's exe file you attach to the w3wp.exe 实际上,Asp.net应用程序与Windows窗体应用程序之间并没有太大区别,唯一的区别是,您无需附加到应用程序的exe文件,而是附加到w3wp.exe。

I had a very good experience using AQTime . 我在使用AQTime方面有很好的经验。 It helped me very quickly identify all my hot spots and in particular it let me narrow in on unnecessary DB queries, its got a line by line profiler and it integrates with VS so you can browse your code and see the profiling metrics in the "gutter" (next to the line numbers). 它帮助我非常迅速地确定了所有热点,尤其是它使我能够缩小不必要的数据库查询的范围,它逐行分析器,并且与VS集成,因此您可以浏览代码并在“装订线”中查看分析指标”(行号旁边)。

In the course of a few hours of banging on my site with the profiler running i was able to make serious improvements in page latency. 在运行Profiler的情况下,花了我几个小时的时间,我才能大幅改善页面延迟。 I highly recommend it. 强烈推荐它。 plus they have a free 2-3 week trial that is full featured. 另外,他们还有功能齐全的2-3周免费试用版。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM