scitools.com

← Metric catalog

Calls 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.

Calls

API ID: CountCalls
Languages: Any
Targets: Functions

The number of calls this function makes

Example:

    void func();
    void doSomething()
    {
      func();             // +1
      func();             // +1
    }                     // CountCalls = 2
    

Compare to CountCallsUnique which counts unique functions this function calls.