Skip to content

Your first analysis

Updated on 28 November 2026

This walk-through takes a project you already have open in IntelliJ IDEA and ends with its most problematic elements on screen. It uses the profile the plugin selects the first time, so there is nothing to configure.

1. Calculate

  1. Open a Java or Kotlin project and let the IDE finish indexing.
  2. Choose Code | Calculate Metrics...
  3. In the dialog, leave the scope on the whole project. Under it, the Profile: list shows How healthy is my code overall?, which is the built-in profile Quick health check.
  4. Click the button that accepts the dialog.

The calculation runs in the background, as the task Computing Metrics in the status bar. You can keep working while it runs, and cancel it from its progress bar.

2. Read the Summary

When the calculation ends, the Stau Metro tool window opens at the bottom with a tab for this run. If some element goes beyond a threshold, the Summary tab is selected:

  • The first line counts the elements with problems, out of all the measured ones, and how many of them are in error.
  • Under it, one row per element with problems, worst first. The icon says whether it is a warning or an error, and the Explanation column says which metric goes beyond which limit, for example v(G) 25 > error 20.
  • A class that has methods with problems shows an arrow. Click it to see those methods.

If no element goes beyond a threshold, the window opens on the first table instead and the Summary says so.

3. Go to the code

Double-click a row of the Summary. The editor opens the method or the class at its declaration.

4. Look at the tables

Next to the Summary there is one tab per kind of element: Method metrics, Class metrics, Package metrics and so on. Each one is a table with a row per element and a column per metric, named by the abbreviation of the metric.

  • Rest the mouse on a column header to see what the metric is and which thresholds apply.
  • Rest it on a cell with an icon to see which limit the value crosses.
  • Right-click a column and choose Explain This Metric to read its full help, or Charts... to see how its values are distributed.

5. Decide what to do next

You want to Read
Measure only a module, a package or your uncommitted changes “Calculating metrics”
Answer a more specific question than "how is my code?" “Built-in profiles”
Change the limits that mark a warning or an error “Thresholds”
See whether a change made things better or worse “Comparing two runs”
Take the numbers to a spreadsheet or a script “Exporting the results”