Activity trace

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I am using winforms, smart client application. I want to generate activity
trace of all the events whiich are being called and time they are taking. Is
there any config section, enabling which should generate the trace
automatically to some file or I need to write to trace listener in each
method?

Thanks
 
Unfortunately, there's no magic config setting to do this. However, there
are a bunch of code profiling tools that will do this and more. They range
from relatively simple and free to extrodinarily advanced and expensive.
They're quite nice. The better ones have a feature I love that will track
how often certain sections of code are called. For example, it can show you
that in a typical application session one function might be called 10,000
times while another only 5. This way you know where to focus your
performance optimizations.

Plenty of examples popped up on Google

http://www.google.com/search?q=c#+code+profiling
 
Back
Top