c# - How to know when a method in a class is being executed -
i'm trying write log monitor execution time of method our application. possible know when method in class being executed without using aspect-oriented programming.
i don't want go every method write log there hope faced issue , can give me suggestion.
updated: i'm writing sharepoint application using .net 3.5
afaik, without aop or directly logging code injections way profiling api.
wouldn't choose way one-time task, isn't easy.
Comments
Post a Comment