CodeInstrumentation Group


Group Description

Group holding aspect programs that support code instrumentation. Code instrumentation is important during testing but the instrumentation code is undesirable in a final application where qualification standards often require elimination of all dead or de-activated code (and instrumentation code will normally count as de-activated code).

The group contains several sample aspects that insert tracing instructions in the base code. Tracing instructions are instructions that generate some external signal that allows the control flow of a program to be followed. A typical tracing instruction is a statement that prints a message to the standard output. The aspect programs in this group illustrate various ways in which tracing instructions can be woven into the base code.

The group also contains sample aspect that inserts profiling instructions to the base code. Profiling a system means collecting the information about the time spent by each operation in the system.


Aspects

TraceClassEntry
Sample aspect program to insert tracing instructions when a selected class is entered
TraceConstructorEntry
Sample aspect program to insert tracing instructions when a construtor is entered
TraceMethodEntry
Sample aspect program to insert tracing instructions when a selected method is entered
TraceMethodIntParameter
Sample aspect program to insert tracing instructions when a method with one integer parameter is entered
TraceMethodIntParametersOnly
Sample aspect program to insert tracing instructions when a method that has integer parameters only is entered
TraceMethodLeave
Sample aspect program to insert tracing instructions when a selected method is left either by return statement or by reaching end of its body
TraceMethodEntryUsingTracer
Sample aspect program that shows how to insert instructions that use dedicated Tracer object for tracing
Profiling
Sample aspect program to insert profiling instructions to the base code