microsoft / Windows-driver-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 (32 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 32 components.
  • 3,624 files, 1,011,243 lines of code (100.0% vs. main code).
  • "network" is biggest, containing 30.54% of code.
  • "ROOT" is smallest, containing 0% of code.


network308830 LOC (30%) 769 files
storage103413 LOC (10%) 100 files
print103097 LOC (10%) 601 files
usb82102 LOC (8%) 324 files
filesys78596 LOC (7%) 188 files
general67531 LOC (6%) 486 files
audio58559 LOC (5%) 192 files
avstream36032 LOC (3%) 147 files
wpd35432 LOC (3%) 161 files
wia21384 LOC (2%) 68 files
serial17265 LOC (1%) 70 files
sensors15399 LOC (1%) 77 files
hid15186 LOC (1%) 67 files
pofx10639 LOC (1%) 59 files
bluetooth9021 LOC (<1%) 48 files
spb7760 LOC (<1%) 32 files
video5612 LOC (<1%) 24 files
input5052 LOC (<1%) 37 files
biometrics4320 LOC (<1%) 39 files
nfp4043 LOC (<1%) 25 files
sd3181 LOC (<1%) 4 files
setup3160 LOC (<1%) 7 files
smartcrd2985 LOC (<1%) 11 files
wmi2804 LOC (<1%) 8 files
pos2292 LOC (<1%) 30 files
TrEE2037 LOC (<1%) 10 files
simbatt1721 LOC (<1%) 7 files
gnss1579 LOC (<1%) 15 files
thermal1381 LOC (<1%) 8 files
security426 LOC (<1%) 4 files
nfc375 LOC (<1%) 5 files
ROOT29 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 09:38