How to Get Detailed Metric Results of Your Application

Overview

With the Metrics Table, you can select metrics to be executed on an application and filter and list results.

Refer to Metrics Table.

Open or Create a Project

Open your preferred project or create a new project with File > New Project > From Project Template > Template Full.

Add a Metrics Table

Step

Action

Result / Comment

1

Right-click the Application object in the Tools tree (or in another navigator view like the Devices tree).

-

2

Select Add Object > Metrics Table from the contextual menu.

The Add Code Analysis Metrics Table editor is displayed.

3

Click the Add button.

  • A Code Analysis Metrics Table object is added beneath the Application object in the Tools tree.

  • The Metrics Table is displayed.

Analyze Code

Step

Action

Result / Comment

1

In the Name column, deactivate the check box All.

If the All check box is activated, analysis takes more time.

2

Activate the check boxes for Halstead Difficulty and Lines Of Code.

-

3

Click the Analyze code button.

The project is analyzed and the results are displayed.

How to Use the Results

Now you can, for example, sort the Halstead Difficulty values by clicking the column header; and then review your project focusing on the highest values for Halstead Difficulty.

Double-clicking a table entry opens the associated application object in its corresponding editor. You can also use the Go to definition contextual menu command of a table entry.

For objects that should not appear in the Metrics Table results you can use the Add to BlockList contextual menu command of a table entry.