Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Form Speed Analyzer for Winforms

Tags:

c#

winforms

I'm trying to help a friend speed up a slow winforms app (Don't usually work with winforms allot). I believe the majority of the issues are Database calls however there is quite a bit going on. For WebDev there are a ton of great apps to analyze Page Load Event, Latency's, and Bottlenecks. Is anyone familiar with and comparable tools for the winforms arena ?

Thanks All !

like image 356
bumble_bee_tuna Avatar asked Nov 05 '25 08:11

bumble_bee_tuna


1 Answers

Any .NET performance profiler will tell you where the time is spent - there is one in certain levels of VS, and several commercial ones (JetBrains, RedGate).

If it is in a database call, you'll be able to work out which one, and look at that.

One problem I've seen in naive WinForms apps can be a lot of stuff being called more than once, particularly when a form opens - it's easy to hook some kind of 'changed' event on a control, which then fires when you're filling in a form, which in turn triggers more changes and then more events. Sometimes you've redrawn everything on the form two or three times before it all settles down. An instrumenting profiler which can track function calls accurately will show you this going on.

like image 147
Will Dean Avatar answered Nov 08 '25 06:11

Will Dean