Providing tracer commands using an input file
Rather than typing commands at the command prompt, you can give the tracer commands from an input file.
About this task
By default, the tracer looks for commands in a file named
OMTracer.cfg
in the configuration directory. If the file does not exist, or the
tracer has reached the end of the file, the tracer looks for commands entered at the prompt. You can
specify a different input file using the input
command (see Tracer commands).
By default, the animator
looks for tracing commands in the OMAnimator.cfg
file.
It is stored in the same directory as the project file.
Note: Because the tracer generates numerous messages, you might want to use the
output
command to send results to a file (see Tracer commands).Sending commands to the tracer using the default input file
Procedure
- Create a text file that contains each tracer command as you would type it at the command prompt, in the order that you want the commands to execute.
- Save the file in the configuration directory
under the name
OMTracer.cfg
. - Generate, make, and run your application using the Tracing instrumentation mode.
Sending tracer commands to the animator using an input file
Procedure
- Create a text file that contains each tracer command as you would type it at the command prompt, in the order that you want the commands to execute.
- Save the file in the project directory under
the name
OMAnimator.cfg
. - Generate, make, and run your application with Animation instrumentation.