Hi...

I was just wondering what recommendations people had for C# code profilers?
I'm trying to figure out where a lot of our app's time is going.

I downloaded and am trying ProfileSharp Enterprise Edition, but I'm finding
the interface awkward and the results suspect (profiling for cpu cycles, it
says Thread.Sleep is the most expensive function).

Has anyone had particularly good experience with a C# code profiler?

Thanks
Mark

RE: Good C# profilers? by wdudek

wdudek
Wed Mar 12 11:01:02 CDT 2008

We use the ANTS Profiler (from Redgate I think). I would recomend it. It
provides for several differnt types of profiling against time and memory. The
report it spits out is pretty detailed. I'm pretty sure there is a full trial
version on their website.

"Mark" wrote:

> Hi...
>
> I was just wondering what recommendations people had for C# code profilers?
> I'm trying to figure out where a lot of our app's time is going.
>
> I downloaded and am trying ProfileSharp Enterprise Edition, but I'm finding
> the interface awkward and the results suspect (profiling for cpu cycles, it
> says Thread.Sleep is the most expensive function).
>
> Has anyone had particularly good experience with a C# code profiler?
>
> Thanks
> Mark
>

RE: Good C# profilers? by mmodrall

mmodrall
Wed Mar 12 11:13:11 CDT 2008

Funny you should mention that... I had just downloaded their trial. I like
the integrated by-line hot spot reporting, but (unless I'm missing something)
they don't seem to have anything but elapsed time measurement - i.e. no "most
cpu intensive" reporting.

I was going to download the Compuware DevStudio Partner trial and see how
that worked. I've used it in the past trying to profile server-side asp
script, but it was very buggy and gave very suspect results.

Thanks
Mark


"wdudek" wrote:

> We use the ANTS Profiler (from Redgate I think). I would recomend it. It
> provides for several differnt types of profiling against time and memory. The
> report it spits out is pretty detailed. I'm pretty sure there is a full trial
> version on their website.
>
> "Mark" wrote:
>
> > Hi...
> >
> > I was just wondering what recommendations people had for C# code profilers?
> > I'm trying to figure out where a lot of our app's time is going.
> >
> > I downloaded and am trying ProfileSharp Enterprise Edition, but I'm finding
> > the interface awkward and the results suspect (profiling for cpu cycles, it
> > says Thread.Sleep is the most expensive function).
> >
> > Has anyone had particularly good experience with a C# code profiler?
> >
> > Thanks
> > Mark
> >

Re: Good C# profilers? by Henning

Henning
Wed Mar 12 12:11:40 CDT 2008

Hi,

I have used http://www.jetbrains.com/profiler/ with success.

Kind regards,
Henning Krause

"Mark" <mmodrall@nospam.nospam> wrote in message
news:7FFEC5B8-28F4-4C40-925A-5A2DE4738607@microsoft.com...
> Hi...
>
> I was just wondering what recommendations people had for C# code
> profilers?
> I'm trying to figure out where a lot of our app's time is going.
>
> I downloaded and am trying ProfileSharp Enterprise Edition, but I'm
> finding
> the interface awkward and the results suspect (profiling for cpu cycles,
> it
> says Thread.Sleep is the most expensive function).
>
> Has anyone had particularly good experience with a C# code profiler?
>
> Thanks
> Mark
>


Re: Good C# profilers? by Cowboy

Cowboy
Wed Mar 12 13:00:52 CDT 2008

DevStudio is good. Ants is good. The bits in Team System are not bad.

If you want to research, there are quite a few here:
http://sharptoolbox.com/categories/profilers-debuggers

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Mark" <mmodrall@nospam.nospam> wrote in message
news:689A4FF5-7C61-420F-BCD9-F8735E97C221@microsoft.com...
> Funny you should mention that... I had just downloaded their trial. I
> like
> the integrated by-line hot spot reporting, but (unless I'm missing
> something)
> they don't seem to have anything but elapsed time measurement - i.e. no
> "most
> cpu intensive" reporting.
>
> I was going to download the Compuware DevStudio Partner trial and see how
> that worked. I've used it in the past trying to profile server-side asp
> script, but it was very buggy and gave very suspect results.
>
> Thanks
> Mark
>
>
> "wdudek" wrote:
>
>> We use the ANTS Profiler (from Redgate I think). I would recomend it. It
>> provides for several differnt types of profiling against time and memory.
>> The
>> report it spits out is pretty detailed. I'm pretty sure there is a full
>> trial
>> version on their website.
>>
>> "Mark" wrote:
>>
>> > Hi...
>> >
>> > I was just wondering what recommendations people had for C# code
>> > profilers?
>> > I'm trying to figure out where a lot of our app's time is going.
>> >
>> > I downloaded and am trying ProfileSharp Enterprise Edition, but I'm
>> > finding
>> > the interface awkward and the results suspect (profiling for cpu
>> > cycles, it
>> > says Thread.Sleep is the most expensive function).
>> >
>> > Has anyone had particularly good experience with a C# code profiler?
>> >
>> > Thanks
>> > Mark
>> >



Re: Good C# profilers? by Cowboy

Cowboy
Wed Mar 12 13:02:06 CDT 2008

DotTrace is nice, especially for the pricing structure. Some profilers are
quite a bit more expensive than the $500 spent on DotTrace.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

*************************************************
| Think outside the box!
|
*************************************************
"Henning Krause [MVP - Exchange]" <newsgroups_remove@this.infinitec.de>
wrote in message news:On3qmQGhIHA.4880@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> I have used http://www.jetbrains.com/profiler/ with success.
>
> Kind regards,
> Henning Krause
>
> "Mark" <mmodrall@nospam.nospam> wrote in message
> news:7FFEC5B8-28F4-4C40-925A-5A2DE4738607@microsoft.com...
>> Hi...
>>
>> I was just wondering what recommendations people had for C# code
>> profilers?
>> I'm trying to figure out where a lot of our app's time is going.
>>
>> I downloaded and am trying ProfileSharp Enterprise Edition, but I'm
>> finding
>> the interface awkward and the results suspect (profiling for cpu cycles,
>> it
>> says Thread.Sleep is the most expensive function).
>>
>> Has anyone had particularly good experience with a C# code profiler?
>>
>> Thanks
>> Mark
>>
>



Re: Good C# profilers? by schneider

schneider
Wed Mar 12 14:31:55 CDT 2008

Some of the profilers had issues with 64 Bit, maybe they fixed that...

"Mark" <mmodrall@nospam.nospam> wrote in message
news:7FFEC5B8-28F4-4C40-925A-5A2DE4738607@microsoft.com...
> Hi...
>
> I was just wondering what recommendations people had for C# code
> profilers?
> I'm trying to figure out where a lot of our app's time is going.
>
> I downloaded and am trying ProfileSharp Enterprise Edition, but I'm
> finding
> the interface awkward and the results suspect (profiling for cpu cycles,
> it
> says Thread.Sleep is the most expensive function).
>
> Has anyone had particularly good experience with a C# code profiler?
>
> Thanks
> Mark
>



RE: Good C# profilers? by wdudek

wdudek
Tue Mar 18 16:18:01 CDT 2008

There is a memory profiler in ants it may give the cpu info, but I'm not sure
off the top of my head. I'll try and check when I'm at work.

"Mark" wrote:

> Funny you should mention that... I had just downloaded their trial. I like
> the integrated by-line hot spot reporting, but (unless I'm missing something)
> they don't seem to have anything but elapsed time measurement - i.e. no "most
> cpu intensive" reporting.
>
> I was going to download the Compuware DevStudio Partner trial and see how
> that worked. I've used it in the past trying to profile server-side asp
> script, but it was very buggy and gave very suspect results.
>
> Thanks
> Mark
>
>
> "wdudek" wrote:
>
> > We use the ANTS Profiler (from Redgate I think). I would recomend it. It
> > provides for several differnt types of profiling against time and memory. The
> > report it spits out is pretty detailed. I'm pretty sure there is a full trial
> > version on their website.
> >
> > "Mark" wrote:
> >
> > > Hi...
> > >
> > > I was just wondering what recommendations people had for C# code profilers?
> > > I'm trying to figure out where a lot of our app's time is going.
> > >
> > > I downloaded and am trying ProfileSharp Enterprise Edition, but I'm finding
> > > the interface awkward and the results suspect (profiling for cpu cycles, it
> > > says Thread.Sleep is the most expensive function).
> > >
> > > Has anyone had particularly good experience with a C# code profiler?
> > >
> > > Thanks
> > > Mark
> > >

RE: Good C# profilers? by mmodrall

mmodrall
Tue Apr 08 16:11:00 CDT 2008

Ended up kicking the tires on 5 profilers: Rational PurifyPlus ($1450),
Compuware DevPartner Studio ($2400), Red Gate ANTS ($295), JetBrains dotTrace
($500), and ProfileSharp (open source).

All but the first 2 only did elapsed-time profiling. As a result in a
highly-threaded application Thread.Sleep() came up disproportionately high in
the hot-spot list.

ANTS and dotTrace both say they'll support cpu profiling in their next
releases. I found the dotTrace ui really awkward.

As with my past experience of DevPartner Studio, the profiler adds *a lot*
of overhead, to the point where it impacts the results quite a bit. The
problems with their suggestions for mitigating the overhead (don't profile
the MS assemblies) is that the calls you make into the framework get
radically discounted and the results aren't a great representation of
reality. DPS has some other tools that sound nice if they worked but seem
fatally flawed. The automated code review tool, for example, goes into an
infinite loop and died on me every time it was asked to do more than about 20
source files.

Of the ones I tested, PurifyPlus seemed to have the best profiling options
with less overhead (than DPS anyway) and was very helpful. Now if I can just
get the budget for it :)

I looked for a couple of the ones on the sharptoolbox.com list but several
of the links seemed dead.

YMMV.

Mark


"Mark" wrote:

> Hi...
>
> I was just wondering what recommendations people had for C# code profilers?
> I'm trying to figure out where a lot of our app's time is going.
>
> I downloaded and am trying ProfileSharp Enterprise Edition, but I'm finding
> the interface awkward and the results suspect (profiling for cpu cycles, it
> says Thread.Sleep is the most expensive function).
>
> Has anyone had particularly good experience with a C# code profiler?
>
> Thanks
> Mark
>