Linux / Drivers / W1
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 34 files with 9,433 lines of code.
    • 1 very long files (1,404 lines of code)
    • 5 long files (3,278 lines of code)
    • 8 medium size files (2,402 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,755 lines of code)
    • 8 very small files (594 lines of code)
14% | 34% | 25% | 18% | 6%
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
c15% | 35% | 26% | 19% | 3%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
slaves29% | 0% | 38% | 24% | 6%
masters0% | 69% | 11% | 15% | 3%
ROOT0% | 70% | 12% | 8% | 8%
Longest Files (Top 34)
File# lines# units
w1_therm.c
in slaves
1404 48
w1.c
in root
955 44
ds2490.c
in masters
776 37
ds1wm.c
in masters
522 19
520 25
omap_hdq.c
in masters
505 18
w1_ds28e17.c
in slaves
455 17
w1_ds2438.c
in slaves
400 14
ds2482.c
in masters
302 14
w1_ds28e04.c
in slaves
279 12
w1_ds2408.c
in slaves
272 13
w1_io.c
in root
252 18
w1_ds250x.c
in slaves
229 6
w1_ds2433.c
in slaves
213 7
w1_ds2805.c
in slaves
195 7
w1_ds2431.c
in slaves
186 5
w1_ds2430.c
in slaves
183 5
w1_int.c
in root
181 4
w1_ds2405.c
in slaves
150 5
matrox_w1.c
in masters
140 7
w1-gpio.c
in masters
139 7
w1_ds2406.c
in slaves
123 4
mxc_w1.c
in masters
118 4
w1_ds2413.c
in slaves
117 2
w1_ds2780.c
in slaves
112 6
w1_ds2781.c
in slaves
111 6
w1_ds2423.c
in slaves
100 1
w1_ds2781.h
in slaves
93 -
90 6
w1_ds2780.h
in slaves
87 -
sgi_w1.c
in masters
86 5
56 -
42 -
w1_smem.c
in slaves
40 2
Files With Most Units (Top 30)
File# lines# units
w1_therm.c
in slaves
1404 48
w1.c
in root
955 44
ds2490.c
in masters
776 37
520 25
ds1wm.c
in masters
522 19
w1_io.c
in root
252 18
omap_hdq.c
in masters
505 18
w1_ds28e17.c
in slaves
455 17
w1_ds2438.c
in slaves
400 14
ds2482.c
in masters
302 14
w1_ds2408.c
in slaves
272 13
w1_ds28e04.c
in slaves
279 12
w1_ds2805.c
in slaves
195 7
w1_ds2433.c
in slaves
213 7
w1-gpio.c
in masters
139 7
matrox_w1.c
in masters
140 7
90 6
w1_ds2781.c
in slaves
111 6
w1_ds250x.c
in slaves
229 6
w1_ds2780.c
in slaves
112 6
w1_ds2431.c
in slaves
186 5
w1_ds2430.c
in slaves
183 5
w1_ds2405.c
in slaves
150 5
sgi_w1.c
in masters
86 5
w1_int.c
in root
181 4
w1_ds2406.c
in slaves
123 4
mxc_w1.c
in masters
118 4
w1_ds2413.c
in slaves
117 2
w1_smem.c
in slaves
40 2
w1_ds2423.c
in slaves
100 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
520 25 1