facebookincubator / mvfst
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 (20 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 20 components.
  • 328 files, 52,248 lines of code (84.1% vs. main code).
  • "build/fbcode_builder" is biggest, containing 16.83% of code.
  • "build" is smallest, containing 0.07% of code.


build/fbcode_builder8792 LOC (14%) 49 files
quic/api8716 LOC (14%) 17 files
quic/server6682 LOC (10%) 43 files
quic/codec5820 LOC (9%) 25 files
quic/state4826 LOC (7%) 40 files
quic/congestion_control3531 LOC (5%) 32 files
quic/client2632 LOC (4%) 13 files
quic/logging2623 LOC (4%) 10 files
quic/common1938 LOC (3%) 22 files
quic/fizz1509 LOC (2%) 24 files
quic/tools1004 LOC (1%) 6 files
quic859 LOC (1%) 4 files
quic/dsr802 LOC (1%) 12 files
cmake573 LOC (<1%) 9 files
quic/loss568 LOC (<1%) 2 files
quic/flowcontrol441 LOC (<1%) 2 files
quic/handshake377 LOC (<1%) 8 files
quic/d6d321 LOC (<1%) 7 files
quic/happyeyeballs196 LOC (<1%) 2 files
build38 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-04-15 01:23