facebook / watchman
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.
  • 414 files, 53,077 lines of code (100.0% vs. main code).
  • "watchman" is biggest, containing 25.68% of code.
  • "ROOT" is smallest, containing 0.01% of code.


watchman13628 LOC (25%) 95 files
build/fbcode_builder8792 LOC (16%) 49 files
watchman/rust4345 LOC (8%) 24 files
watchman/watcher3529 LOC (6%) 13 files
watchman/query2902 LOC (5%) 32 files
watchman/python2766 LOC (5%) 9 files
watchman/fs1826 LOC (3%) 13 files
watchman/root1825 LOC (3%) 16 files
watchman/java1817 LOC (3%) 20 files
watchman/cmds1723 LOC (3%) 12 files
watchman/integration1167 LOC (2%) 21 files
watchman/winbuild1046 LOC (1%) 12 files
website/_sass1015 LOC (1%) 4 files
website/_includes894 LOC (1%) 31 files
watchman/ruby849 LOC (1%) 8 files
watchman/node846 LOC (1%) 3 files
website/src798 LOC (1%) 1 files
watchman/scm767 LOC (1%) 6 files
eden/fs753 LOC (1%) 5 files
watchman/cppclient733 LOC (1%) 7 files
watchman/cli396 LOC (<1%) 3 files
watchman/saved_state205 LOC (<1%) 6 files
website/_layouts101 LOC (<1%) 10 files
website/_data90 LOC (<1%) 5 files
website85 LOC (<1%) 2 files
website/static61 LOC (<1%) 1 files
watchman/build49 LOC (<1%) 2 files
website/css36 LOC (<1%) 1 files
website/blog30 LOC (<1%) 2 files
ROOT3 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:42