apple / darwin-libpthread
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 63 files with 12,709 lines of code.
    • 3 very long files (5,652 lines of code)
    • 3 long files (2,327 lines of code)
    • 8 medium size files (2,619 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (992 lines of code)
    • 42 very small files (1,119 lines of code)
44% | 18% | 20% | 7% | 8%
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
c60% | 24% | 11% | 1% | 1%
h0% | 0% | 28% | 34% | 36%
lua0% | 0% | 83% | 0% | 16%
s0% | 0% | 100% | 0% | 0%
py0% | 0% | 100% | 0% | 0%
d0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src46% | 20% | 23% | 5% | 3%
kern64% | 23% | 0% | 7% | 3%
include/pthread0% | 0% | 65% | 0% | 34%
tools0% | 0% | 83% | 0% | 16%
lldbmacros0% | 0% | 100% | 0% | 0%
private/pthread0% | 0% | 0% | 52% | 47%
include/sys0% | 0% | 0% | 0% | 100%
src/resolver0% | 0% | 0% | 0% | 100%
src/variants0% | 0% | 0% | 0% | 100%
private/sys0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
kern_synch.c
in kern
2148 -
pthread.c
in src
2094 1
pthread_mutex.c
in src
1410 1
pthread_rwlock.c
in src
838 -
kern_support.c
in kern
780 -
pthread_cond.c
in src
709 1
qos.c
in src
487 -
types_internal.h
in src
358 -
pthread.h
in include/pthread
327 -
pthread_cancelable.c
in src
318 -
lua
locktrace.lua
in tools
318 7
s
pthread_asm.s
in src
298 -
pthread_tsd.c
in src
289 -
init.py
in lldbmacros
224 18
tsd_private.h
in private/pthread
188 -
inline_internal.h
in src
179 -
kern_internal.h
in kern
143 -
pthread_atfork.c
in src
143 -
synch_internal.h
in kern
118 -
workqueue_private.h
in private/pthread
115 -
exports_internal.h
in src
106 -
private.h
in private/pthread
90 -
qos_private.h
in private/pthread
81 -
kern_trace.h
in kern
79 -
pthread_dependency.c
in src
78 -
_pthread_types.h
in include/sys/_pthread
77 -
prototypes_internal.h
in src
63 -
lua
pthtrace.lua
in tools
61 3
kern_init.c
in kern
48 2
qos.h
in include/pthread
46 -
qos.h
in include/sys
45 -
internal.h
in src
45 -
imports_internal.h
in src
41 -
pthread_spis.h
in include/pthread
32 -
dependency_private.h
in private/pthread
32 -
offsets_internal.h
in src
31 -
introspection.h
in include/pthread
28 -
jit_private.h
in private/pthread
27 -
pthread_impl.h
in include/pthread
22 -
plockstat.d
in src
21 -
spinlock_private.h
in private/pthread
20 -
stack_np.h
in include/pthread
18 -
sched.h
in include/pthread
15 -
spawn.h
in include/pthread
15 -
posix_sched.h
in private/pthread
11 -
qos.h
in private/pthread
11 -
pthread_cwd.c
in src
11 -
_pthread_attr_t.h
in include/sys/_pthread
5 -
_pthread_cond_t.h
in include/sys/_pthread
5 -
_pthread_condattr_t.h
in include/sys/_pthread
5 -
Files With Most Units (Top 7)
File# lines# units
init.py
in lldbmacros
224 18
lua
locktrace.lua
in tools
318 7
lua
pthtrace.lua
in tools
61 3
kern_init.c
in kern
48 2
pthread.c
in src
2094 1
pthread_cond.c
in src
709 1
pthread_mutex.c
in src
1410 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 64 long lines.

File# lines# units# long lines
kern_internal.h
in kern
143 - 22
imports_internal.h
in src
41 - 16
init.py
in lldbmacros
224 18 8
kern_synch.c
in kern
2148 - 7
workqueue_private.h
in private/pthread
115 - 3
qos.c
in src
487 - 3
pthread_cond.c
in src
709 1 2
pthread.h
in include/pthread
327 - 1
pthread.c
in src
2094 1 1
lua
locktrace.lua
in tools
318 7 1