Performing your own runtime analysis of your code in C#
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2009-08-12T00:40:35Z
Indexed on
2010/03/26
13:33 UTC
Read the original article
Hit count: 339
I have written a large C# app with many methods in many classes.
I'm trying to keep a log of what gets called and how often during my development. (I keep a record in a DB)
Every method is padded with the following calls:
void myMethod()
{
log(entering,args[]);
log(exiting,args[]);
}
Since I want to do this for all my methods, is there a better way to do this then having to replicate those lines of code in every method?
© Stack Overflow or respective owner