scitools.com

← Metric catalog

Unique Objects Modified 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.

Unique Objects Modified

API IDCountObjectsModifiedUnique
TargetsFunctions
LanguagesAny
CategoriesCoupling
CostQuery

The number of unique objects modified by this function

Example:

    int my_global = 10;
    void modifies(int x)
    {
      int y, z;
      x += 1;           // + 1 Parameters count
      x ++;             //     Duplicates do not count
      y += 1;           // + 1 Locals count
      y ++;             //     Duplicates do not count
      my_global += 1;   // + 1 Globals count
      my_global ++;     //     Duplicates do not count
    }                   // CountObjectsModifiedUnique = 3
    

Compare to CountObjectsModified which counts all modifications to objects by this function.