apple / swift-nio
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 (35 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 10 components.

Bubble Chart | Tree Map
Components
The "primary" logical decomposition has 35 components.
  • 191 files, 33,995 lines of code (85.2% vs. main code).
  • "Sources/NIOCore" is biggest, containing 30.53% of code.
  • "Sources/_NIOConcurrency" is smallest, containing 0% of code.


Sources/NIOCore10379 LOC (26%) 48 files
Sources/NIOPosix9471 LOC (23%) 44 files
Sources/NIOHTTP13544 LOC (8%) 10 files
Sources/CNIOHTTPParser2224 LOC (5%) 3 files
Sources/NIOPerformanceTester1772 LOC (4%) 14 files
Sources/NIOWebSocket1063 LOC (2%) 11 files
Sources/NIOConcurrencyHelpers697 LOC (1%) 3 files
Sources/NIOHTTP1Server494 LOC (1%) 1 files
Sources/NIOEmbedded418 LOC (1%) 1 files
Sources/NIOCrashTester391 LOC (<1%) 7 files
docker368 LOC (<1%) 6 files
Sources/_NIODataStructures285 LOC (<1%) 2 files
Sources/NIOTLS259 LOC (<1%) 3 files
Sources/CNIOAtomics257 LOC (<1%) 4 files
Sources/CNIOSHA1236 LOC (<1%) 2 files
Sources/NIOWebSocketServer226 LOC (<1%) 1 files
Sources/NIOFoundationCompat206 LOC (<1%) 3 files
Sources/CNIOLinux176 LOC (<1%) 4 files
Sources/NIOAsyncAwaitDemo163 LOC (<1%) 3 files
Sources/NIOWebSocketClient157 LOC (<1%) 1 files
scripts150 LOC (<1%) 1 files
dev129 LOC (<1%) 3 files
Sources/CNIOWindows123 LOC (<1%) 3 files
Sources/NIOChatServer113 LOC (<1%) 1 files
ROOT105 LOC (<1%) 1 files
Sources/NIOUDPEchoClient88 LOC (<1%) 1 files
Sources/CNIODarwin86 LOC (<1%) 2 files
Sources/NIOHTTP1Client82 LOC (<1%) 1 files
Sources/NIOMulticastChat72 LOC (<1%) 1 files
Sources/NIOChatClient67 LOC (<1%) 1 files
Sources/NIOEchoClient67 LOC (<1%) 1 files
Sources/NIOEchoServer62 LOC (<1%) 1 files
Sources/NIOUDPEchoServer61 LOC (<1%) 1 files
Sources/NIO3 LOC (<1%) 1 files
Sources/_NIOConcurrency1 LOC (<1%) 1 files
Dependencies
Dependencies among components are static code dependencies among files in different components.

No component dependencies found.



2022-01-30 21:55