Viewing static metrics

Static Metrics for C, C++ and Ada

Use the Metrics Viewer to view static testability measurements of the source files of your project. Source code metrics are created each time a source file is added to the project.

To compute static metrics without executing the application:

  1. In the Project Browser, select a node.

  2. From the Build menu, select Options or click the Build Options button in the toolbar.

  3. Clear all build options. Select only Source compilation and Static metrics.

  4. Click the Build toolbar button.

To open the Metrics Viewer:

  1. Right-click a node in the Asset Browser of the Project Explorer.

  2. From the pop-up menu, select View Metrics.

To manually open a report file:

  1. From the File menu, select Open... or click the Open icon in the main toolbar.

  2. In the Type box of the File Selector, select the .met Metrics File file type.

  3. Locate and select the metrics files that you want to open.

  4. Click OK.

Report Explorer

The Report Explorer displays the scope of the selected nodes, or selected .met metrics files. Select a node to switch the Metrics Window scope to that of the selected node.

Metrics Window

Depending on the language of the analyzed source code, different pages are available:

The metrics window offer hyperlinks to the actual source code. Click the name of a source component to open the Text Editor at the corresponding line.

Related Topics

Root Level File View | Root Level Object View | Static Metrics | Exporting reports