Before using IBM Rational Test RealTime as a Rose RealTime plug-in, you must first open or create a model within Rose RealTime.
Test RealTime can perform Source Code Insertion (SCI) instrumentation on several components.
Note If you installed Rose RealTime after Test RealTime, you must manually install the plug-in. Please refer to the IBM Rational Test RealTime Installation Guide for further information.
To activate Runtime Analysis tools:
From Rose RealTime, open the Component Specification of the components that you want to observe and select the C++ TestRT tab.
Select Enable Component Instrumentation.
In the Coverage section, select the code coverage type
Select Enable Memory Profiling, Enable Performance Profiling and Enable Runtime Tracing to specify the Runtime Analysis tools that you want to activate. The Additional Options box allows you to add other options to the Instrumentation Launcher command line.
Activate Add Target Deployment Port Object Files if you want to link the selected component with the TDP.
This is required when producing an executable. For a library component, this depends on whatever components are linked to the library.
This option also adds a new version of cmdCommand.obj to the object file list if such a file exists in <InstallDir>\bin\intel\RoseRT\<TDP>, where <InstallDir> is the Test RealTime installation directory and <TDP> is the name of the current TDP. This object file dumps SCI traces when the user clicks on the Stop button in Rose RealTime.
Select Support Multi-threaded Code Generation if necessary. Optionally, you can enter a new location and file name for the trace file in Output Trace File Name. By default, <model directory>\atlout.spt is used.
Click OK.
In Rose RealTime, from the Tools menu, select Rational Test RealTime , and Enable Instrumentation of Selected Components. You must repeat this operation whenever you change any of the options described above.
To run a build with the runtime analysis tools:
In Rose RealTime, click the Build Component button, or from the Build menu, select Build or Rebuild.
These commands generate the code and makefile, and launch the product instrumentation with the selected options.
To run the instrumented binary:
Just like a standard Rose RealTime application, from the Build menu, select Run or click the Run button.
Then, click Start and, when appropriate, Stop.
Related Topics
Generating Trace Dumps | Collecting Trace Dump Data in Rose RealTime