facebook / zstd
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 (30 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 12 components.

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 30 components.
  • 188 files, 68,249 lines of code (100.0% vs. main code).
  • "lib/legacy" is biggest, containing 24.03% of code.
  • "programs/windres" is smallest, containing 0.01% of code.


lib/legacy16402 LOC (24%) 15 files
lib/compress15068 LOC (22%) 27 files
programs7371 LOC (10%) 22 files
lib/common5974 LOC (8%) 24 files
lib/decompress5139 LOC (7%) 7 files
lib/dictBuilder3969 LOC (5%) 6 files
zlibWrapper2613 LOC (3%) 8 files
doc1665 LOC (2%) 1 files
contrib/pzstd1561 LOC (2%) 17 files
build/VS20101558 LOC (2%) 8 files
doc/educational_decoder1389 LOC (2%) 3 files
contrib/seekable_format768 LOC (1%) 3 files
lib751 LOC (1%) 4 files
contrib/largeNbDicts739 LOC (1%) 1 files
contrib/freestanding_lib598 LOC (<1%) 1 files
contrib/linux-kernel498 LOC (<1%) 6 files
contrib/match_finders409 LOC (<1%) 2 files
contrib/diagnose_corruption329 LOC (<1%) 1 files
ROOT213 LOC (<1%) 2 files
lib/deprecated196 LOC (<1%) 4 files
build/single_file_libs190 LOC (<1%) 3 files
lib/dll181 LOC (<1%) 1 files
contrib/gen_html172 LOC (<1%) 1 files
build/cmake146 LOC (<1%) 5 files
contrib/recovery117 LOC (<1%) 1 files
build/VS_scripts94 LOC (<1%) 9 files
contrib/premake69 LOC (<1%) 2 files
build/meson55 LOC (<1%) 2 files
contrib/snap10 LOC (<1%) 1 files
programs/windres5 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-04-14 22:59