Measure the number of events?

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

+3
source share
4 answers

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:

+1

.

- . , .

eventArgs, , , eventArg.

eventArgs, eventArgs customEventArgs, . , , . , , eventArgs customEventArgs. 10 .

, , , ? , , , , , .

0

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!

0
source

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.

0
source

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


All Articles