Skip to content

Comparing two runs

Updated on 28 November 2026

A comparison puts two sets of results in the same tables: the current ones and an earlier reference. There are two ways to get the reference.

Recalculate and compare

Use it to see the effect of what you have just changed.

  1. Calculate, and leave the results open.
  2. Change the code.
  3. Click Recalculate and Compare in the toolbar of the run.

The plugin calculates again, with the same scope and profile, and compares the new results with the ones that were on screen.

Snapshots

Use them to compare with a state you want to keep: the last release, the start of a refactoring, last month.

  1. With the results on screen, click Save Snapshot... and choose where to save the file. The plugin adds the .met extension.
  2. Later, with new results on screen, click Compare with Snapshot... and select the file.

A snapshot holds every value of the run, whatever the filter of the tables shows, together with the profile, the project, the scope and the time. It does not hold thresholds: a comparison always judges both sides with the thresholds your profile has now. “File formats” describes the file.

How a comparison looks

The title of the tab adds the time of the reference:

Profile: Complexity metrics · Scope: Project 'shop' · Snapshot from: Fri, 20 Nov 2026 … · Run at: Sat, 28 Nov 2026 …

In the tables

A table shows the rows of both runs, and each cell compares the two values:

The cell shows Background Meaning Tooltip
12 none The value did not change
12/9 modified Now 12, before 9 Changed, value 12, in the snapshot 9
5 added The element has a value only now New, value 5, not in the snapshot
7 deleted The element had a value only before Removed, value in the snapshot 7

The backgrounds are the colours your editor uses for added, modified and deleted lines. The warning and error icons judge the current value, and the tooltip of a cell gives the change first and the threshold after it. Total and Average are compared in the same way.

In the Summary

  • A Change column marks each hot spot as New, when it was not one before, or Worse, when it now has a higher severity or more metrics beyond a limit.
  • The first line adds no longer hot spots: ….

In the charts

The charts of a metric gain the Changes tab (“Charts”).

Keep comparing, or stop

  • Recalculate keeps the comparison: the new results are compared with the same reference.
  • Recalculate and Compare moves the reference: the new results are compared with the ones that were on screen.
  • Dismiss Comparison shows the current results alone.

While a comparison is shown, the menu of a column does not offer Explain This Metric.

Comparing things that are not the same

The plugin compares whatever you give it, and tells you when the two sides differ in more than time.

  • Another scope or another project. A warning appears: The snapshot measured … in project …, and these results … in project …: the elements outside either one show as new or removed. The comparison stays on screen. It is what you want when you compare a module with itself in another branch, and noise otherwise.
  • Another profile. Only the metrics that both runs have are compared. A metric that only one side has shows as new or removed in every row, and does not count for New and Worse in the Summary.
  • The filter of the tables. With Show Only Rows That Exceed a Threshold on, a row stays if it has a warning or an error in either of the two runs.

If the snapshot cannot be read

Could not read the snapshot … means the file is not a snapshot or is damaged. A snapshot made with another version of the plugin is read as far as possible: the metrics the installed version does not know are skipped.