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 cas

ITPro Today

April 15, 2004

3 Min Read
ITPro Today logo in a gray background | ITPro Today

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.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like