title: ASP.Net page methods execution time monitoring
body: <p>could anybody advice me, are there any approaches to calculate the methods execution time in asp.net page?</p>
  
  <p>ASP.Net Trace doesn't suit me since it ignores ajax partial postbacks though just they are the tight place.</p>
  
  <p>I have the page event which for some unknown reason executes slowly. Since the logic and event execution chain is rather complicated, I still unable to merely determine the culprit in debugger.</p>
  
  <p>I'd like to measure the execution time of each method throughout the page, but I still see no way but insert redundant code lines (like timeBegin = DateTime.Now.... timeEnd=DateTime.Now = timeBegin etc) in the beginning and ending of each method. It seems to be ugly approach, does anybody know how to do it automatically? Are there tools which measure the methods execution time available?</p>