<p>I need a C# profiler.</p>

<p>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.</p>

<p>Any recommendations?</p>

[{'answer_id': 10649, 'author': 'DevelopingChris', 'author_id': 1220, 'author_profile': 'https://Stackoverflow.com/users/1220', 'pm_score': 1, 'selected': False, 'text': "<p>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.</p>\n"}, {'answer_id': 10650, 'author': 'Mark', 'author_id': 263, 'author_profile': 'https://Stackoverflow.com/users/263', 'pm_score': 2, 'selected': False, 'text': '<p>I have used AQtime and it has never let me down. I am sure there is a trial version.</p>\n'}, {'answer_id': 10651, 'author': 'AdamSane', 'author_id': 805, 'author_profile': 'https://Stackoverflow.com/users/805', 'pm_score': 5, 'selected': False, 'text': '<p>I used <a href="http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/" rel="nofollow noreferrer">Ants profiler</a> on 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.</p>\n\n<p>It calculates cost on with almost a line by line resolution.</p>\n'}, {'answer_id': 10652, 'author': 'Leon Bambrick', 'author_id': 49, 'author_profile': 'https://Stackoverflow.com/users/49', 'pm_score': 5, 'selected': False, 'text': '<p><a href="http://www.jetbrains.com/profiler/" rel="noreferrer">dotTrace</a> from JetBrains is widely used.</p>\n\n<p>Patrick Smacchia\'s awesome <a href="http://www.ndepend.com/#" rel="noreferrer">NDepend</a> is excellent for providing static analysis. </p>\n'}, {'answer_id': 10655, 'author': 'jfs', 'author_id': 718, 'author_profile': 'https://Stackoverflow.com/users/718', 'pm_score': 6, 'selected': True, 'text': '<p>You can try the following:</p>\n\n<ul>\n<li><a href="http://nprof.sourceforge.net/Site/Description.html" rel="noreferrer">nprof</a> (free but kinda old)</li>\n<li><a href="http://sourceforge.net/projects/profilesharp/" rel="noreferrer">ProfileSharp</a> (open source)</li>\n<li><a href="http://memprofiler.com/" rel="noreferrer">.Net Memory Profiler</a> (really good for memory leaks, there\'s a trial version)</li>\n</ul>\n\n<hr>\n\n<p>Edit: \nNprof has been replaced with <a href="https://code.google.com/p/slimtune/" rel="noreferrer">SlimTune</a> and works with .Net 4.0 applications</p>\n'}, {'answer_id': 10656, 'author': 'mbillard', 'author_id': 810, 'author_profile': 'https://Stackoverflow.com/users/810', 'pm_score': 3, 'selected': False, 'text': '<p>We use <a href="http://www.red-gate.com/products/ants_performance_profiler/index.htm" rel="nofollow noreferrer">Ants profiler</a> where I work. It gives very detailed information in a simple manner.</p>\n'}, {'answer_id': 10664, 'author': 'lomaxx', 'author_id': 493, 'author_profile': 'https://Stackoverflow.com/users/493', 'pm_score': 2, 'selected': False, 'text': "<blockquote>\n  <p>Patrick Smacchia's awesome NDepend is\n  excellent for providing static\n  analysis.</p>\n</blockquote>\n\n<p>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.</p>\n"}, {'answer_id': 10789, 'author': 'Patrik Svensson', 'author_id': 936, 'author_profile': 'https://Stackoverflow.com/users/936', 'pm_score': 0, 'selected': False, 'text': '<p>I found the <a href="http://memprofiler.com/" rel="nofollow noreferrer">.NET Memory Profiler</a> yesterday, and I must say that I\'m very impressed by it.<br>\nI\'m going to order my license today.</p>\n'}, {'answer_id': 10854, 'author': 'Will Dean', 'author_id': 987, 'author_profile': 'https://Stackoverflow.com/users/987', 'pm_score': 3, 'selected': False, 'text': "<p>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 <em>isn't</em> what I would generally describe as 'a profiler'.</p>\n\n<p>What kind of profiling were you trying to do?</p>\n"}, {'answer_id': 231577, 'author': 'Jason Sundram', 'author_id': 2683, 'author_profile': 'https://Stackoverflow.com/users/2683', 'pm_score': 2, 'selected': False, 'text': '<p>I\'ll second <a href="http://www.red-gate.com/products/ants_profiler/index.htm" rel="nofollow noreferrer">red gate\'s ANTS profiler</a>. 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 ...</p>\n'}, {'answer_id': 401660, 'author': 'Craigger', 'author_id': 18924, 'author_profile': 'https://Stackoverflow.com/users/18924', 'pm_score': 3, 'selected': False, 'text': '<p>We use <a href="http://memprofiler.com" rel="noreferrer">.NET Memory Profiler</a>.  Its kinda ugly but very useful for finding dangling references.</p>\n\n<p>I originally tried <a href="http://www.red-gate.com" rel="noreferrer">Red Gate\'s ANTS profiler</a> which is very sexy, but from a memory leak point of view it sucks for the following reasons:</p>\n\n<p>1) Its ridiculously slow.  It was taking half an hour to get the application into a state to start recording (takes 20 seconds without red-gate).</p>\n\n<p>2) Red Gate needs to run its own tool on its own tool.  It was using 900MB of memory by the time I finished two snapshots!  It then crashed :(</p>\n\n<p>However the timing component of Red Gate ANTS was impressive.  Just don\'t bother with the memory profiler, unless you are dealing with a trivial (small footprint) application.</p>\n'}, {'answer_id': 849471, 'author': 'MedicineMan', 'author_id': 62539, 'author_profile': 'https://Stackoverflow.com/users/62539', 'pm_score': 2, 'selected': False, 'text': '<p>I have had good luck with the .NET memory profiler</p>\n'}, {'answer_id': 849511, 'author': 'Meta-Knight', 'author_id': 48910, 'author_profile': 'https://Stackoverflow.com/users/48910', 'pm_score': 0, 'selected': False, 'text': '<p>Although not very good to profile memory usage, the profiler included in some versions of Visual Studio does a very good job of profiling execution speed.</p>\n'}, {'answer_id': 851347, 'author': 'Miha Markic', 'author_id': 84615, 'author_profile': 'https://Stackoverflow.com/users/84615', 'pm_score': 1, 'selected': False, 'text': '<p>AQTime (both perf and memory) or ANTS (v4 performance profiler or v5 beta memory profiler) here.</p>\n'}, {'answer_id': 857781, 'author': 'HullCitySteve', 'author_id': 97701, 'author_profile': 'https://Stackoverflow.com/users/97701', 'pm_score': 5, 'selected': False, 'text': '<p>The <a href="http://www.eqatec.com/tools/profiler" rel="noreferrer">EQATEC profiler</a> is very good and is completely free. It\'s easy to setup and use, and doesn\'t seem to add too much of an overhead to the application. I\'ve just started using it today and have already found a couple of bottlenecks I wouldn\'t have spotted otherwise.</p>\n'}, {'answer_id': 959842, 'author': 'Mike Dunlavey', 'author_id': 23771, 'author_profile': 'https://Stackoverflow.com/users/23771', 'pm_score': 0, 'selected': False, 'text': '<p>What\'s your objective?</p>\n\n<p>Is it your objective to locate specific statements and get a rough idea of what they are contributing to your total execution time, so you can find ways to do them differently?</p>\n\n<p><a href="https://stackoverflow.com/questions/926266/performance-optimization-strategies-of-last-resort/927773#927773">For that, I swear by this method.</a></p>\n'}, {'answer_id': 1171369, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>EQATEC profiler did the job here.</p>\n'}, {'answer_id': 1632458, 'author': 'Fabrice', 'author_id': 56286, 'author_profile': 'https://Stackoverflow.com/users/56286', 'pm_score': 4, 'selected': False, 'text': '<p>I maintain a comprehensive <a href="http://sharptoolbox.com/categories/profilers-debuggers" rel="noreferrer">list of profilers for .NET</a> on SharpToolbox.com.</p>\n\n<p>You\'ll find there the tools suggested here and more, each with a short description of what it proposes.</p>\n'}, {'answer_id': 2221768, 'author': 'David Schmitt', 'author_id': 4918, 'author_profile': 'https://Stackoverflow.com/users/4918', 'pm_score': 2, 'selected': False, 'text': '<p>The current release of <a href="http://www.icsharpcode.net/OpenSource/SD/" rel="nofollow noreferrer">SharpDevelop (3.1.1)</a> has a nice integrated profiler. It\'s quite fast, and integrates very well into the SharpDevelop IDE and its NUnit runner. Results are displayed in a flexible Tree/List style (use LINQ to create your own selection). Doublecliking the displayed method jumps directly into the source code.</p>\n'}]
['https://Stackoverflow.com/questions/10644', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/147/']