有没有像样的 C# 分析器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10644/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-07-31 17:36:11  来源:igfitidea点击:

Any decent C# profilers out there?

提问by Gareth Simpson

I need a C# profiler.

我需要一个 C# 分析器。

Although I'm not averse to paying for one, something which is free or at least with a trial version would be ideal since it takes time to raise a purchase order.

尽管我不反对付费购买,但免费或至少带有试用版的东西将是理想的选择,因为提出采购订单需要时间。

Any recommendations?

有什么建议吗?

采纳答案by jfs

You can try the following:

您可以尝试以下操作:



Edit: Nprof has been replaced with SlimTuneand works with .Net 4.0 applications

编辑:Nprof已被替换SlimTune与.NET 4.0的应用程序的工作原理

回答by DevelopingChris

Currently don't use them, a buddy of mine raves about Ants profiler. I know its a for-pay product not sure how expensive. If you happen to staff an MVP you might be able to leverage that to get a license for free.

目前不使用它们,我的一个朋友对 Ants profiler 赞不绝口。我知道它是一种付费产品,不确定有多贵。如果您碰巧为 MVP 配备人员,您可能可以利用它来免费获得许可证。

回答by Mark

I have used AQtime and it has never let me down. I am sure there is a trial version.

我用过 AQtime,它从来没有让我失望过。我确定有试用版。

回答by AdamSane

I used Ants profileron a large c# project a year and a half ago. It really performed very nicely for what it cost, and even outperformed a few of the more expensive competitors.

一年半前,我在一个大型 c# 项目中使用了Ants 分析器。就其成本而言,它的表现确实非常好,甚至超过了一些更昂贵的竞争对手。

It calculates cost on with almost a line by line resolution.

它几乎以逐行分辨率计算成本。

回答by Leon Bambrick

dotTracefrom JetBrains is widely used.

JetBrains 的dotTrace被广泛使用。

Patrick Smacchia's awesome NDependis excellent for providing static analysis.

Patrick Smacchia 很棒的NDepend非常适合提供静态分析。

回答by mbillard

We use Ants profilerwhere I work. It gives very detailed information in a simple manner.

我们在我工作的地方使用Ants 分析器。它以简单的方式提供非常详细的信息。

回答by lomaxx

Patrick Smacchia's awesome NDepend is excellent for providing static analysis.

Patrick Smacchia 很棒的 NDepend 非常适合提供静态分析。

I would thoroughly recommend NDepend for static analysis, but just be warned that you'll probably need to put aside a day or two to actually analyse the truckload of information that it provides as well as work out what all the stats actually mean in terms of your code.

我会彻底推荐 NDepend 进行静态分析,但请注意,您可能需要留出一两天时间来实际分析它提供的大量信息,并计算出所有统计数据在以下方面的实际含义你的代码。

回答by Patrik Svensson

I found the .NET Memory Profileryesterday, and I must say that I'm very impressed by it.
I'm going to order my license today.

我昨天发现了.NET Memory Profiler,我必须说我对它印象非常深刻。
我今天要订购我的许可证。

回答by Will Dean

It's interesting that no-one mentions that there's one in the higher-end versions of Visual Studio - I've always found that to be good enough for execution profiling. For memory profiling I use Memory Profiler which has already been mentioned, but isn'twhat I would generally describe as 'a profiler'.

有趣的是,没有人提到在 Visual Studio 的高端版本中有一个 - 我一直发现这足以进行执行分析。对于内存分析,我使用已经提到过的 Memory Profiler,但这不是我通常所说的“分析器”。

What kind of profiling were you trying to do?

你试图做什么样的分析?

回答by Jason Sundram

I'll second red gate's ANTS profiler. I've used it to track down some really troubling performance issues and it was dead simple to use (low learning curve) and presented nice, detailed data in a way that was easy to understand. The price tag is worth it, but it isn't free ...

我将第二个红门的 ANTS profiler。我已经用它来追踪一些真正令人不安的性能问题,它使用起来非常简单(低学习曲线),并以一种易于理解的方式呈现了漂亮、详细的数据。价格标签是值得的,但它不是免费的......