.NET的一些可用的profiler

本文探讨了针对Java和.NET应用的CPU性能调优工具,包括HP的JTunes、VisualVM、Visual Studio Team Edition自带的Profiler等。此外还提到了第三方工具如RedGate ANTS Profiler、JetBrains dotTrace Profiler及Compuware DevPartner Performance Analysis Community Edition等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前几天提到high-CPU的问题,顺便把这两天路过看到的东西记下来。

Java方面有[url=http://www.hp.com/products1/unix/java/java2/hpjtune/]HP的JTunes[/url]之类的产品,也有[url=https://visualvm.dev.java.net/]VisualVM[/url]之类的免费开源工具。

.NET方面的话,首先会想到的还是Visual Studio Team Edition里自带的profiler。不过师兄说这个profiler主要是监视内存使用状况的,而对CPU使用状况没什么辙(?)。我还没跑过这个profiler,不太清楚。

第三方的.NET profiler也不少。见到一些地方有提到名字的有:
[url=http://www.red-gate.com/products/ants_profiler/index.htm]Red Gate ANTS Profiler[/url]
[url=http://www.jetbrains.com/profiler/]JetBrains dotTrace Profiler[/url]
[url=http://www.compuware.com/products/devpartner/profiler/default.asp?cid=701000000004ej0AAA&focus=&productfocus=&source=Web+-+Evaluation+Request&offering=DevPartner&productfamily=DevPartner&desc=The+DevPartner+Community+Profiler+Edition+is+a+product+download+that+offers+customers+and+prospects+a+high-level+view+of+the+performance+profiling+capabilities+of+DevPartner+Studio+Professional+Edition.&trk=200601-74]Compuware DevPartner Performance Analysis Community Edition[/url]

不过我看到的帖里说ANTS在某些情况会导致程序运行的错误。
[quote]That is not true of the ANTS profiler by RedGate software, which breaks on the tail calls (ILX) generated by the F# compiler. I'd like to know if the same is true of the profiler you cited.[/quote]
([url]http://www.thescripts.com/forum/thread722793.html[/url])
这个问题值得关注……

以前我也读到过些资料,提到在与不在VS2005里运行程序可能会得到不同的运行结果。原因是在VS2005里JIT会以特殊的模式(debug?)来运行,即使项目当前设置在release模式上。我没dump过JIT的结果所以无法确定这是不是真的,不过这种差异会给调试带来很subtle的问题……麻烦啊诶。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值