apple / swift-distributed-tracing
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 20 files with 1,727 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (536 lines of code)
    • 1 medium size files (402 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (411 lines of code)
    • 15 very small files (378 lines of code)
0% | 31% | 23% | 23% | 21%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
swift0% | 31% | 23% | 24% | 19%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
Sources/_TracingBenchmarkTools0% | 64% | 0% | 35% | <1%
Sources/Tracing0% | 0% | 77% | 0% | 22%
Sources/_TracingBenchmarks0% | 0% | 0% | 83% | 16%
Sources/Instrumentation0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
docker0% | 0% | 0% | 0% | 100%
Longest Files (Top 20)
File# lines# units
DriverUtils.swift
in Sources/_TracingBenchmarkTools
536 24
Span.swift
in Sources/Tracing
402 6
ArgParser.swift
in Sources/_TracingBenchmarkTools
152 2
BenchmarkTools.swift
in Sources/_TracingBenchmarkTools
144 3
SpanAttributesDSLBenchmark.swift
in Sources/_TracingBenchmarks
115 8
Tracer.swift
in Sources/Tracing
70 2
Package.swift
in root
49 -
Locks.swift
in Sources/Instrumentation
47 2
NoOpTracer.swift
in Sources/Tracing
43 -
InstrumentationSystem.swift
in Sources/Instrumentation
39 -
MultiplexInstrument.swift
in Sources/Instrumentation
24 1
main.swift
in Sources/_TracingBenchmarks
22 -
Instrument.swift
in Sources/Instrumentation
15 2
docker-compose.1804.53.yaml
in docker
13 -
docker-compose.1804.54.yaml
in docker
13 -
NoOpInstrument.swift
in Sources/Instrumentation
12 -
docker-compose.1804.55.yaml
in docker
12 -
docker-compose.1804.52.yaml
in docker
9 -
InstrumentationSystem+Tracing.swift
in Sources/Tracing
6 -
BenchmarkCategory.swift
in Sources/_TracingBenchmarkTools
4 -
Files With Most Units (Top 9)
File# lines# units
DriverUtils.swift
in Sources/_TracingBenchmarkTools
536 24
SpanAttributesDSLBenchmark.swift
in Sources/_TracingBenchmarks
115 8
Span.swift
in Sources/Tracing
402 6
BenchmarkTools.swift
in Sources/_TracingBenchmarkTools
144 3
Instrument.swift
in Sources/Instrumentation
15 2
Locks.swift
in Sources/Instrumentation
47 2
Tracer.swift
in Sources/Tracing
70 2
ArgParser.swift
in Sources/_TracingBenchmarkTools
152 2
MultiplexInstrument.swift
in Sources/Instrumentation
24 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there is only one long line.

File# lines# units# long lines
Span.swift
in Sources/Tracing
402 6 1