microsoft / Xbox-ATG-Samples
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 (19 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 19 components.
  • 2,329 files, 426,289 lines of code (100.0% vs. main code).
  • "Kits/DirectXTK12" is biggest, containing 11.27% of code.
  • "Kits/Telemetry" is smallest, containing 0% of code.


Kits/DirectXTK1248039 LOC (11%) 128 files
XDKSamples/Graphics45960 LOC (10%) 304 files
Kits/DirectXTK42987 LOC (10%) 123 files
UWPSamples/IntroGraphics39882 LOC (9%) 226 files
XDKSamples/System38604 LOC (9%) 353 files
UWPSamples/System33681 LOC (7%) 165 files
Kits/DirectXTex32685 LOC (7%) 40 files
PCSamples/IntroGraphics29114 LOC (6%) 202 files
XDKSamples/IntroGraphics26831 LOC (6%) 262 files
UWPSamples/Audio19738 LOC (4%) 104 files
XDKSamples/Audio13993 LOC (3%) 118 files
Kits/ATGTK13369 LOC (3%) 62 files
UWPSamples/Graphics13031 LOC (3%) 63 files
PCSamples/Raytracing10755 LOC (2%) 73 files
XDKSamples/Tools10580 LOC (2%) 60 files
PCSamples/Graphics6323 LOC (1%) 38 files
UWPSamples/Tools542 LOC (<1%) 6 files
Kits/CPUTK160 LOC (<1%) 1 files
Kits/Telemetry15 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 13:29