New Onboard is here — AI-guided, self-hosted onboarding for your codebase. Learn more
Features Code Navigation Static Analysis Graphs Compliance Metrics Custom API How it works Compliance FAQs Pricing Docs Start free trial
Metrics

Using metrics to understand your code

Understand's metrics let you quickly learn key values about your code — cyclomatic complexity, the ratio of comment to code, line counts, and more.

File, class and entity level · Treemaps and charts · Export to HTML or CSV

Understand's metrics browser listing metric values for the files and functions of a parsed project.
Why metrics

Getting the most out of metrics

When it comes to maintaining your code, the more information the better. Understand's metrics give you that information in a way that's easy to understand.

  • Understand your code's cyclomatic complexity using the browser and display options built into the tool
  • Receive detailed metrics about your code at the file, class and entity levels
  • Export a full list of your metrics to an HTML or CSV file
Metric values for a parsed project shown in Understand, listed per file and per function.
Metric values follow whatever you have selected, from a single function up to the whole project.
Working with metrics

Cyclomatic complexity is just the beginning

Four ways Understand puts numbers about your code in front of you.

View the cyclomatic complexity of your code

Cyclomatic complexity is used to understand the maintainability of your code. Understand displays this information in easy to find browser windows.

Understand's metrics browser listing cyclomatic complexity for each function in a file.

A graphical display of your code's metrics

Visualize metrics across your entire project with a metrics treemap. Each block represents a file, class or function of your code, and the blocks vary in size and color gradient to display the metrics you select. The sample here uses the number of lines in each file for the size and the cyclomatic complexity for the color.

A metrics treemap in Understand, where each block is a file sized by line count and colored by cyclomatic complexity.

Everything you need to know about your code

Understand's metrics charts provide information for your overall project, including the most complex and largest functions, classes and files.

Metrics charts in Understand ranking the largest and most complex functions, classes and files in a project.

Select which metrics you want to export

Use the Export Metrics dialog to select which metrics you want to export, the order of the metrics in the output, the output file, and more. Metrics can be exported to HTML or CSV files.

Understand's Export Metrics dialog, with a checklist of metrics to include and a choice of HTML or CSV output.
HIS metrics

Now with Hersteller Initiative Software (HIS) metrics

Prove your software development process capability with HIS metrics. Find hotspots in your code quickly and easily with our metric treemaps and automated reports.

Understand is trusted by over 20,000 developers

Amazon NASA NVIDIA Toyota US Air Force Raytheon Technologies Samsung Amazon NASA NVIDIA Toyota US Air Force Raytheon Technologies Samsung Amazon NASA NVIDIA Toyota US Air Force Raytheon Technologies Samsung
Get started

Try Understand for free today

Our free trial enables all features that can be used on a sample code base — or point it at your own and read the first metrics in minutes.