microsoft / psi
Components & Dependencies

An overview of source code logical components.

Intro

Logical decomposition is a representation of the organization of the main source code, where every and each file is put in exactly one logical component.

  • A software system can have one or more logical decompositions.
  • A logical decomposition can be defined in two ways in Sokrates.
  • First approach is based on the folders structure. Components are mapped to folders at defined folder depth relative to the source code root.
  • Second approach is based on explicit definition of each component. In such explicit definitions, components are explicitly named and their files are selected based on explicitly defined path and content filters.
  • A logical decomposition is considered invalid if a file is selected into two or more components.This constraint is introduced in order to facilitate measuring of dependencies among components.
  • Files not assigned to any component are put into a special "Unclassified" component.
Learn more...
Logical Decompositions Overview

Analyzed system has 1 logical decomposition:

  • primary (20 components)

Logical Decomposition #1: PRIMARY

The decompositions is based on the folder structure (relative to the source code root), with automatically defined folder depth to have at least 10 components.

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 20 components.
  • 1,147 files, 104,884 lines of code (100.0% vs. main code).
  • "Sources/Visualization" is biggest, containing 34.52% of code.
  • "Build/docfx" is smallest, containing 0.01% of code.


Sources/Visualization36202 LOC (34%) 468 files
Sources/Runtime34685 LOC (33%) 265 files
Sources/Audio5999 LOC (5%) 93 files
Sources/Integrations5388 LOC (5%) 85 files
Sources/Media5224 LOC (4%) 57 files
Sources/Imaging5071 LOC (4%) 48 files
Sources/Tools3160 LOC (3%) 20 files
Sources/Kinect2881 LOC (2%) 23 files
Sources/Data2508 LOC (2%) 32 files
Sources/Speech1255 LOC (1%) 18 files
Sources/Calibration1088 LOC (1%) 11 files
Sources/RealSense648 LOC (<1%) 13 files
Sources/Common187 LOC (<1%) 1 files
Sources/Filters186 LOC (<1%) 2 files
Sources/Language110 LOC (<1%) 3 files
Sources/Toolkits99 LOC (<1%) 3 files
Build96 LOC (<1%) 1 files
Sources/Devices54 LOC (<1%) 1 files
ROOT28 LOC (<1%) 1 files
Build/docfx15 LOC (<1%) 2 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 13:55