pytorch / cpuinfo
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 70 files with 16,015 lines of code.
    • 2 very long files (4,172 lines of code)
    • 7 long files (4,423 lines of code)
    • 14 medium size files (4,476 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,434 lines of code)
    • 37 very small files (1,510 lines of code)
26% | 27% | 27% | 8% | 9%
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
c21% | 34% | 27% | 9% | 6%
h54% | 0% | 20% | 9% | 14%
py0% | 0% | 63% | 0% | 36%
cc0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/arm34% | 41% | 14% | 6% | 1%
include95% | 0% | 0% | 0% | 4%
src/x860% | 35% | 39% | 14% | 10%
tools0% | 0% | 64% | 23% | 11%
scripts0% | 0% | 74% | 0% | 25%
src0% | 0% | 83% | 0% | 16%
src/linux0% | 0% | 43% | 20% | 35%
src/emscripten0% | 0% | 100% | 0% | 0%
ROOT0% | 0% | 0% | 0% | 100%
src/cpuinfo0% | 0% | 0% | 0% | 100%
src/mach0% | 0% | 0% | 0% | 100%
bench0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
chipset.c
in src/arm/linux
2797 46
cpuinfo.h
in include
1375 109
cache.c
in src/arm
893 2
cpuinfo.c
in src/arm/linux
703 10
midr.c
in src/arm/linux
626 5
init.c
in src/arm/linux
616 6
init.c
in src/x86/linux
548 7
init.c
in src/x86/windows
533 5
init.c
in src/arm/mach
504 5
name.c
in src/x86
457 12
gpu-dump.c
in tools
417 2
android-device-dump.py
in scripts
369 8
clusters.c
in src/arm/linux
355 4
api.c
in src
352 48
processors.c
in src/linux
351 16
cpu-info.c
in tools
324 1
init.c
in src/x86/mach
315 3
api.h
in src/arm/linux
313 2
uarch.c
in src/arm
310 1
init.c
in src/emscripten
241 1
uarch.c
in src/x86
233 1
isa.c
in src/x86
224 1
midr.h
in src/arm
215 27
aarch32-isa.c
in src/arm/linux
198 3
cpulist.c
in src/linux
168 3
cpuinfo.c
in src/x86/linux
161 4
isa-info.c
in tools
152 1
vendor.c
in src/x86
142 1
api.h
in src/x86
139 -
hwcap.c
in src/arm/linux
138 5
cpuid-dump.c
in tools
121 5
api.h
in src/arm
110 -
aarch64-isa.c
in src/arm/linux
105 1
topology.c
in src/x86
96 1
arm-linux-filesystem-dump.py
in scripts
90 3
mockfile.c
in src/linux
90 4
configure.py
in root
88 1
multiline.c
in src/linux
85 1
cache-info.c
in tools
72 2
cpuid.h
in src/x86
72 3
topology.c
in src/mach
64 1
mockcpuid.c
in src/x86
63 3
cpuinfo-mock.h
in include
62 -
smallfile.c
in src/linux
61 1
init.c
in src/x86
58 1
properties.c
in src/arm/android
55 4
init.c
in src
53 2
api.h
in src/linux
49 -
internal-api.h
in src/cpuinfo
49 -
cpuinfo-dump.c
in tools
36 1
Files With Most Units (Top 20)
File# lines# units
cpuinfo.h
in include
1375 109
api.c
in src
352 48
chipset.c
in src/arm/linux
2797 46
midr.h
in src/arm
215 27
processors.c
in src/linux
351 16
name.c
in src/x86
457 12
cpuinfo.c
in src/arm/linux
703 10
android-device-dump.py
in scripts
369 8
init.c
in src/x86/linux
548 7
init.c
in src/arm/linux
616 6
cp.h
in src/arm/linux
33 6
cpuid-dump.c
in tools
121 5
init.c
in src/x86/windows
533 5
hwcap.c
in src/arm/linux
138 5
midr.c
in src/arm/linux
626 5
init.c
in src/arm/mach
504 5
cc
get-current.cc
in bench
35 4
cpuinfo.c
in src/x86/linux
161 4
mockfile.c
in src/linux
90 4
clusters.c
in src/arm/linux
355 4
Files With Long Lines (Top 20)

There are 21 files with lines longer than 120 characters. In total, there are 78 long lines.

File# lines# units# long lines
clusters.c
in src/arm/linux
355 4 23
cpuinfo.c
in src/arm/linux
703 10 9
aarch32-isa.c
in src/arm/linux
198 3 5
chipset.c
in src/arm/linux
2797 46 5
midr.c
in src/arm/linux
626 5 5
api.h
in src/linux
49 - 4
processors.c
in src/linux
351 16 4
init.c
in src/arm/linux
616 6 4
init.c
in src/x86/linux
548 7 3
configure.py
in root
88 1 2
topology.c
in src/x86
96 1 2
cpuinfo.c
in src/x86/linux
161 4 2
name.c
in src/x86
457 12 2
cache-info.c
in tools
72 2 1
init.c
in src/x86/windows
533 5 1
smallfile.c
in src/linux
61 1 1
multiline.c
in src/linux
85 1 1
cpulist.c
in src/linux
168 3 1
aarch64-isa.c
in src/arm/linux
105 1 1
properties.c
in src/arm/android
55 4 1