I make some settings in a very large application. Is there a way to measure the number of events triggered in an application? For example, using something in System.Diagnostics?
Adding code inside events is NOT an acceptable solution due to the size of the application.
There are profiling tools, but a quick and easy approach for me will be something found in .Net
I'm not sure that knowing the number of events will help you in any way. It would be more useful to find out where your program spends its time or allocates its memory. The profiler will help with this.
To record a list of profilers:
.
- . , .
eventArgs, , , eventArg.
eventArgs, eventArgs customEventArgs, . , , . , , eventArgs customEventArgs. 10 .
, , , ? , , , , , .
Windows ?
if he is the last one to subscribe to your events? Perhaps you can write a “glue” code that indicates sites between events and subscribers!
I came to the conclusion that try performance measurement tools instead. Since there is no easy way to make thy dimension code wise. I will talk about what he can do for me.
Source: https://habr.com/ru/post/1710664/More articles:TLBIMP.EXE - Error TI0000 - * .dll is not a valid type library - deploymentConnecting to Team Foundation Server (TFS) with proxy authentication - tfsShould I rewrite the end of the Webapp interface in Erlang? - erlangС#: Явное указание интерфейса в методе реализации - access-modifiersHow to call NetworkStream.Read () without blocking? - c #Can I automate a GNOME application? How? - user-interfaceIs there an equivalent to $ (document) .ready for initialization after reloading part of the page? - jqueryCustom Generic.IEqualityComparer (Of T) - Compiler Errors - vb.netConvert HTML to JSF - htmlWhat is the best way to get around a "potentially dangerous request" error in asp.net? - htmlAll Articles