Back to Table of Contents

Obtaining Metrics For Files

This section discusses the steps for obtaining various metrics values for the clone files located in a directory.

Select a directory

Click on a target directory to select it from the system navigation tree. Metrics will be computed for all clone files located within this directory

Open the popup menu and select the operation

Right click on the selected directory to open the popup menu. Select Metrics->Metrics for files from the menu.

Result

The computed metrics values for all clone files will be displayed as a new tab panel(titled File metric Values) in the viewer window.

Sorting metric values

Exporting/Saving metric values

To save the result, follow the following steps:

Step-1: To save the result, click on the Export Metric Values button. This will open a dialog box. Select the folder where you want to save the result.
Step-2: Provide the name of the file you want to save .
Step-3: Click on the Save button to complete the operation.

Plotting metric values

To plot the metric values, click the on the Plot button.

Plotting metric values (Continued)

You can change the selection to plot different metric values. Putting the cursor over a bar provides the detail path information.

Browsing clone code fragments

Step-1: Select one or more rows by holding the command key in MAC or control key in Windows.
Step-2: Now click on the Browse Code Button to analyze the clone code fragments in the selected file(s) with the source code browser.