facebook / bistro
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.
  • 328 files, 28,736 lines of code (100.0% vs. main code).
  • "build/fbcode_builder" is biggest, containing 30.6% of code.
  • "bistro/flags" is smallest, containing 0.02% of code.


build/fbcode_builder8792 LOC (30%) 49 files
web_ui/src4902 LOC (17%) 70 files
bistro/remote1660 LOC (5%) 14 files
bistro/config1456 LOC (5%) 21 files
bistro/processes1403 LOC (4%) 12 files
bistro/runners1326 LOC (4%) 10 files
bistro/server1113 LOC (3%) 9 files
bistro/cron964 LOC (3%) 10 files
bistro/utils939 LOC (3%) 23 files
bistro/statuses923 LOC (3%) 10 files
bistro/worker840 LOC (2%) 4 files
bistro/scheduler707 LOC (2%) 21 files
web_ui/rsrc681 LOC (2%) 17 files
bistro/physical615 LOC (2%) 13 files
bistro/nodes570 LOC (1%) 16 files
bistro/sqlite389 LOC (1%) 4 files
bistro/cmake334 LOC (1%) 4 files
bistro/if304 LOC (1%) 4 files
bistro/monitor202 LOC (<1%) 2 files
bistro/thrift191 LOC (<1%) 2 files
bistro186 LOC (<1%) 3 files
bistro/py129 LOC (<1%) 7 files
bistro/benchmark105 LOC (<1%) 1 files
bistro/flags5 LOC (<1%) 2 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-04-14 22:53