scitools.com

← Metric catalog

Coupled Classes (Batch) is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.

Coupled Classes (Batch)

API ID: CountClassCoupledBatch
Languages: C, C++
Targets: Classes

A version of C++ Coupled Classes for batch export

Is your metrics export taking a long time? If you're using a C++ project with lots of classes, then CountClassCoupled is likely the problem. All built-in class metrics are calculated on demand, and CountClassCoupled is the slowest of them.

This plugin calculates the value for every class in the project and then returns the cached values. So, it's a longer wait for the first value, but substantially faster for subsequent values. It's designed to improve batch export speed.

Note that the optimizations for batch speed can result in different values from the built-in metric for these cases:

See also the Coupled Classes Metric interactive report to see which classes were coupled.