Instrumentation (computer programming)

In computer programming, instrumentation is the act of modifying software so that analysis can be performed on it.[1]

Generally, instrumentation either modifies source code or binary code. Execution environments like the JVM provide separate interfaces to add instrumentation to program executions, such as the JVMTI, which enables instrumentation during program start.

Instrumentation enables profiling: [2] measuring dynamic behavior during a test run. This is useful for properties of a program that cannot be analyzed statically with sufficient precision, such as performance and alias analysis.

Instrumentation can include:

  • Logging events such as failures and operation start and end [3]
  • Measuring and logging the duration of operations
  1. ^ A. Sabetta and H. Koziolek, “Measuring Performance Metrics: Techniques and Tools,” in Dependability metrics. Springer, 2008, pp. 226–232.
  2. ^ "Commenting, Testing, and Instrumenting Code". Dr. Dobb's. January 3, 2011. Retrieved January 29, 2014.
  3. ^ Source Code Instrumentation Overview at IBM website

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search