facebook / folly
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 (31 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 31 components.
  • 1,168 files, 179,081 lines of code (100.0% vs. main code).
  • "folly" is biggest, containing 22.96% of code.
  • "folly/tools" is smallest, containing 0.01% of code.


folly41118 LOC (22%) 154 files
folly/experimental33885 LOC (18%) 243 files
folly/io21776 LOC (12%) 93 files
build/fbcode_builder8792 LOC (4%) 49 files
folly/container8738 LOC (4%) 28 files
folly/synchronization8032 LOC (4%) 60 files
folly/fibers5586 LOC (3%) 59 files
folly/futures5152 LOC (2%) 23 files
folly/logging4612 LOC (2%) 62 files
folly/concurrency4398 LOC (2%) 13 files
folly/portability4119 LOC (2%) 61 files
folly/gen3893 LOC (2%) 15 files
folly/detail3885 LOC (2%) 38 files
folly/executors3883 LOC (2%) 57 files
folly/lang2989 LOC (1%) 34 files
folly/compression2674 LOC (1%) 11 files
folly/stats2474 LOC (1%) 23 files
folly/net2072 LOC (1%) 10 files
folly/memory2071 LOC (1%) 20 files
folly/hash2014 LOC (1%) 12 files
CMake1688 LOC (<1%) 20 files
folly/ssl1235 LOC (<1%) 17 files
folly/system988 LOC (<1%) 14 files
folly/python983 LOC (<1%) 33 files
folly/functional531 LOC (<1%) 3 files
folly/chrono502 LOC (<1%) 2 files
folly/tracing390 LOC (<1%) 6 files
folly/support295 LOC (<1%) 1 files
folly/poly155 LOC (<1%) 2 files
folly/init128 LOC (<1%) 4 files
folly/tools23 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:41