Is there an equivalent to trace = true in Winforms?

I have a winform that takes too long to load. The form has a gazillion controls, and I would like to see how much time each control takes over. If it were a web application, I would just turn on tracing, but I can not find anything like it in winforms.
Any thoughts?
Thank.

+3
source share
3 answers

It is unlikely that this is actually a slow boot. The constructor is usually fast, no matter how many controls you create. If you have a Load event handler, you can easily measure how long it takes with a stopwatch class or profiler.

, - , . , 50 . , Microsoft Outlook. , , , . , . , , , , , . , , .

, . . , , OnPaint. , Telerik, , .

+2

, / WinForms: winforms?

: Windows

, !

0

, , , , .

Try disabling the most likely suspects and see if your performance improves. Must. Then turn on each of the remote controls one at a time to see if it is obvious which control slows everything down.

Can not be. There can be 6 controls, each of which takes 5 seconds to load. I doubt you need accurate trace information, just an understanding of which controls are the worst manufacturers.

0
source

Source: https://habr.com/ru/post/1758229/


All Articles