Runtime Tracing

Runtime Tracing for C, C++

Runtime Tracing is a feature for monitoring real-time dynamic interaction analysis of your C, C++ source code. Runtime Tracing uses exclusive Source Code Insertion (SCI) instrumentation technology to generate trace data, which is turned into UML sequence diagrams within the HCL OneTest Embedded GUI.

In HCL OneTest Embedded, Runtime Tracing can run either as a standalone product, or in conjunction with a Component Testing or System Testing test node.

  • You associate Performance Profiling with an existing test or application code.

  • You build and execute your code in HCL OneTest Embedded.

  • The application under test, instrumented with the Runtime Tracing feature, then directs output to the UML/SD Viewer, which a provides a real-time UML Sequence Diagram of your application's behavior.

Runtime Tracing supports the following languages:

  • C: ANSI 89, ANSI 99, or K&R C

  • C++: ISO/IEC 14882:1998

How Runtime Tracing Works

When an application node is executed, the source code is instrumented by the C, C++ Instrumentor (attolcc1, attolccp or attolcc4). The resulting source code is then executed and the Runtime Tracing feature outputs a static .tsf file for each instrumented source file as well as a dynamic .tdf file.

These files can be viewed and controlled from the HCL OneTest Embedded GUI. Both the .tsf and .tdf files need to be opened simultaneously to view the report.

Of course, these steps are mostly transparent to the user when the test or application node is executed in the HCL OneTest Embedded GUI or Eclipse (for C and C++).