Enable runtime analysis tools

When the source code is run with any of the runtime analysis tools enabled, either alone or in a component test, the source code is instrumented and the results are displayed in a report.

Before you begin

Before running a test with any of the runtime analysis tools enabled, ensure that the correct Target Deployment Port (TDP) is selected.

Procedure

To enable runtime analysis tools on your source code:
  1. In the project explorer, right-click the project on which you want to enable the runtime analysis tools and click Properties.
  2. Click C/C++ Build > Settings and select the Build TDP page to check that the correct TDP is selected.
    If necessary, click the Target Deployment Port value to change the TDP.
  3. Select the Build Instrument page and select Settings > General > Selective instrumentation.
  4. Select the Build Options line and click Edit.
  5. In the Build Options window, select the runtime analysis tools that you want to enable.
    • Memory Profiling detects memory leaks and allocation problems.
    • Performance Profiling locates performance issues and bottlenecks.
    • Code Coverage provides coverage information of the source code as it is run.
    • Runtime Tracing displays a dynamic UML sequence diagram of the run.
    • Static Metrics evaluates the complexity of the source code.
    • Code Review assesses compliance to coding rules.
    • Debug enables the workbench debug mode.
  6. Click OK, Apply the changes and close the Properties window.
  7. Click Project > Clean > Clean all projects.
    If the project is successfully built, in the project explorer, the Binaries folder contains the compiled binary executable for the project. If the project did not build successfully, see the Troubleshooting section for help on resolving compilation issues.