Linux / Drivers / Cpufreq
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 97 files with 27,024 lines of code.
    • 2 very long files (4,249 lines of code)
    • 7 long files (4,779 lines of code)
    • 40 medium size files (12,746 lines of codeclsfd_ftr_w_mp_ins)
    • 30 small files (4,329 lines of code)
    • 18 very small files (921 lines of code)
15% | 17% | 47% | 16% | 3%
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
c16% | 18% | 47% | 15% | 2%
h0% | 0% | 44% | 32% | 22%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT15% | 17% | 47% | 16% | 3%
Longest Files (Top 50)
File# lines# units
2419 142
cpufreq.c
in root
1830 99
892 37
787 41
781 29
longhaul.c
in root
741 16
534 32
529 26
515 18
488 12
483 19
463 14
451 6
442 9
436 19
429 26
423 22
418 26
418 6
407 9
382 11
364 10
357 9
343 18
334 9
320 14
311 7
longhaul.h
in root
300 -
297 9
292 16
290 13
271 9
265 11
264 9
260 10
258 6
253 -
248 9
244 13
235 9
234 6
233 7
232 11
230 11
223 5
216 8
214 12
212 8
206 10
186 11
Files With Most Units (Top 50)
File# lines# units
2419 142
cpufreq.c
in root
1830 99
787 41
892 37
534 32
781 29
429 26
529 26
418 26
423 22
436 19
483 19
515 18
343 18
292 16
longhaul.c
in root
741 16
320 14
463 14
290 13
244 13
214 12
488 12
232 11
265 11
186 11
382 11
230 11
260 10
206 10
364 10
407 9
334 9
264 9
173 9
235 9
357 9
297 9
271 9
248 9
442 9
171 8
longrun.c
in root
178 8
120 8
212 8
216 8
123 8
99 7
233 7
172 7
311 7
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 4 long lines.

File# lines# units# long lines
172 7 2
787 41 1
311 7 1