microsoft / ms-tpm-20-ref
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 (21 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 21 components.
  • 488 files, 63,492 lines of code (48.6% vs. main code).
  • "tpm/include" is biggest, containing 28.38% of code.
  • "Simulator/include" is smallest, containing 0.09% of code.


tpm/include18019 LOC (13%) 48 files
tpm/src/crypt9661 LOC (7%) 33 files
tpm/src/support9381 LOC (7%) 20 files
tpm/include/prototypes7559 LOC (5%) 199 files
tpm/src/command6052 LOC (4%) 129 files
tpm/src/subsystem3704 LOC (2%) 10 files
tpm2489 LOC (1%) 2 files
tpm/src/main1687 LOC (1%) 3 files
Simulator/src977 LOC (<1%) 3 files
Platform/src897 LOC (<1%) 12 files
tpm/src/X509639 LOC (<1%) 4 files
Platform575 LOC (<1%) 2 files
Simulator491 LOC (<1%) 1 files
tpm/include/Ossl232 LOC (<1%) 3 files
Platform/include/prototypes213 LOC (<1%) 1 files
Platform/include212 LOC (<1%) 4 files
tpm/include/Wolf205 LOC (<1%) 4 files
tpm/include/Ltc181 LOC (<1%) 4 files
Simulator/include/prototypes139 LOC (<1%) 1 files
tpm/src/events125 LOC (<1%) 4 files
Simulator/include54 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 15:02