Skip navigation

Code Instrumentation Techniques- Depth Coverage on Tracing

Code instrumentation refers to the task of including code in programs to monitor the performance of .NET applications. We can use code instrumentation to display messages or write to event logs in case of a failure during the execution of an application at run time.

 

Code Instrumentation - Tasks

 

Code instrumentation enables us to monitor and examine an application while developing it or after deploying it. Code instrumentation includes the following tasks:

 

§          Debugging

 

§          Tracing

 

§          Writing to Performance counters and event logs

 

Debugging

 

This process enables us to troubleshoot programming and logical errors in code. We use debugging tools, such as Cordbg.exe or DbgClr.exe, to debug applications.

 

Tracing

 

Using Tracing technique, we can gather information about code execution at run time. Tracing information can be used to troubleshoot an application after it is deployed.

 

Writing to Performance counters and event logs

 

With counters and logs we collect and analyze performance-related data to monitor the performance of applications. Event logs enable us to log information about the events that occur during the execution of an application.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish