Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / October 2007

Tip: Looking for answers? Try searching our database.

C# App Profiling

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Jones vpac org> <davidj - 14 Oct 2007 03:09 GMT
I'm posting this here and on the VS Forum (C#) and on XP Embedded ng

I have an XPe system that runs a .NET (C#) app that works with external hw
via USB ports.  The app consists of a number of C# DLLs plus wrappers around
the hw dll APIs (ie platform invoke.

On a 1 Gig system the system maxes out at 100% CPU usage.
On a 1.9 Duo system it runs at about 33% (total) CPU usage.

The code written by someone else needs some profiling etc.
I suspect there are some busy waits that are polling for events rather than
the sw being event driven.  I am about to try to improve the app.

Q What tools should I use to profile the app.  Any whitepapers or other
references?

Signature

David Jones
Software Developer
(Embeddded Systems)
Victorian Partnership of Advanced Computing
Melbourne, Victoria Australia

Jon Harrop - 14 Oct 2007 06:57 GMT
> Q What tools should I use to profile the app.  Any whitepapers or other
> references?

The profiler in Visual Studio Team Edition is good. It is not in Pro
edition.

Red Gate software kindly gave me a trial copy of their ANTS Profiler. I
discovered that it does not support ILX and just crashed on all but the
most trivial of F# programs as a consequence. Hopefully they'll fix it soon
because it looked like a really nice program.

Signature

Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/products/?u

bob - 15 Oct 2007 22:57 GMT
Hi,
Red Ant has already been suggested, you may want to try JetBrains
Profiler also.
Bob

>I'm posting this here and on the VS Forum (C#) and on XP Embedded ng
>
[quoted text clipped - 11 lines]
>Q What tools should I use to profile the app.  Any whitepapers or other
>references?
Rad [Visual C# MVP] - 16 Oct 2007 13:54 GMT
>Hi,
>Red Ant has already been suggested, you may want to try JetBrains
[quoted text clipped - 16 lines]
>>Q What tools should I use to profile the app.  Any whitepapers or other
>>references?

The JetBrains profiler, DotTrace,is actually pretty good ...

--
http://bytes.thinkersroom.com
Jon Harrop - 17 Oct 2007 08:01 GMT
> The JetBrains profiler, DotTrace,is actually pretty good ...

Does it support ILX, i.e. other .NET languages?

Signature

Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/products/?u

Rad [Visual C# MVP] - 18 Oct 2007 10:52 GMT
>> The JetBrains profiler, DotTrace,is actually pretty good ...
>
>Does it support ILX, i.e. other .NET languages?

Indeed. Profilers don't deal with the program source code itself, but
rather with the compiled executable or class library.

Thus it does not matter what .NET language the application was written
with.

Although having said that having the source code is always good
because you can better analyze the profiler results and establish
problematic code or methods.

I wrote a short tutorial you can take a look at:

http://thinkersroom.com/bytes/2007/10/01/profiling-net-applications-i/

--
http://bytes.thinkersroom.com
Jon Harrop - 18 Oct 2007 14:59 GMT
>>Does it support ILX, i.e. other .NET languages?
>
[quoted text clipped - 3 lines]
> Thus it does not matter what .NET language the application was written
> with.

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.

Signature

Dr Jon D Harrop, Flying Frog Consultancy
http://www.ffconsultancy.com/products/?u

Rad [Visual C# MVP] - 19 Oct 2007 11:11 GMT
>>>Does it support ILX, i.e. other .NET languages?
>>
[quoted text clipped - 7 lines]
>the tail calls (ILX) generated by the F# compiler. I'd like to know if the
>same is true of the profiler you cited.

Really? Wow. I didn't know that.
Hmm.

Let me investigate DotTrace and see whether it trips up as well.

--
http://bytes.thinkersroom.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.