facebook / rocksdb
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 (24 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 24 components.
  • 1,154 files, 264,983 lines of code (100.0% vs. main code).
  • "db" is biggest, containing 27% of code.
  • "coverage" is smallest, containing 0.03% of code.


db71557 LOC (27%) 164 files
java40652 LOC (15%) 282 files
utilities32785 LOC (12%) 172 files
table22875 LOC (8%) 113 files
tools21928 LOC (8%) 43 files
util15941 LOC (6%) 77 files
include13703 LOC (5%) 98 files
db_stress_tool9237 LOC (3%) 25 files
env8889 LOC (3%) 22 files
options5883 LOC (2%) 12 files
port4215 LOC (1%) 28 files
file4210 LOC (1%) 23 files
memtable3159 LOC (1%) 10 files
monitoring3028 LOC (1%) 27 files
trace_replay2081 LOC (<1%) 10 files
microbench1269 LOC (<1%) 2 files
logging980 LOC (<1%) 9 files
memory915 LOC (<1%) 12 files
fuzz452 LOC (<1%) 5 files
buckifier405 LOC (<1%) 4 files
build_tools329 LOC (<1%) 3 files
cmake249 LOC (<1%) 11 files
ROOT168 LOC (<1%) 1 files
coverage73 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:43