Instrumenting traces

To instrument traces to your source code, do the following:

  1. From the TraceBuilder menu, select Instrument Code.
  2. Select a group for your traces or define a new one by typing the name into the Trace Group field.
  3. Type a name format for your traces.

    The default is {$CN}_{$FN}, which means className_functionName.

    The values for className and functionName are parsed from the source code.

  4. Type a text format for your traces.

    The default is {$cn}::{$fn}, which means className::functionName.

    The values for className and functionName are parsed from the source code.

  5. (Optional) From the Templates list, you can select pre-defined format for the trace.

    For example, Function entry-exit template parses the name of the class and function where the cursor is currently located. An entry trace is added to the beginning of the function and the exit trace is added to the end.

  6. (Optional) Select any of the following options, as needed:
  7. Click OK.
  8. In the displayed dialog, select the functions you want to instrument.
  9. Click OK to start instrumentation of the source code.
Related tasks
Related concepts