microsoft / mu_tiano_plus
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 417 files with 77,065 lines of code.
    • 9 very long files (15,918 lines of code)
    • 28 long files (19,061 lines of code)
    • 78 medium size files (24,950 lines of codeclsfd_ftr_w_mp_ins)
    • 49 small files (7,201 lines of code)
    • 253 very small files (9,935 lines of code)
20% | 24% | 32% | 9% | 12%
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
c24% | 27% | 31% | 8% | 8%
h0% | 6% | 35% | 16% | 40%
nasm0% | 0% | 94% | 0% | 5%
yaml0% | 0% | 0% | 0% | 100%
lds0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
SecurityPkg/Tcg34% | 36% | 15% | 2% | 10%
SecurityPkg/Library18% | 31% | 31% | 8% | 10%
SecurityPkg/VariableAuthenticated82% | 0% | 6% | 5% | 5%
SecurityPkg/HddPassword83% | 0% | 9% | 0% | 7%
SourceLevelDebugPkg/Library22% | 16% | 47% | 4% | 8%
FmpDevicePkg/FmpDxe57% | 28% | 0% | 6% | 7%
EmbeddedPkg/GdbStub0% | 63% | 36% | 0% | 0%
FatPkg/EnhancedFatDxe0% | 29% | 54% | 8% | 7%
SecurityPkg/Pkcs7Verify0% | 100% | 0% | 0% | 0%
EmbeddedPkg/Universal0% | 32% | 49% | 15% | 2%
EmbeddedPkg/Drivers0% | 31% | 33% | 30% | 4%
EmbeddedPkg/SimpleTextInOutSerial0% | 100% | 0% | 0% | 0%
EmbeddedPkg/Library0% | 9% | 52% | 23% | 14%
SecurityPkg/Include0% | 0% | 53% | 0% | 46%
FatPkg/FatPei0% | 0% | 68% | 18% | 13%
EmbeddedPkg/Include0% | 0% | 26% | 18% | 55%
FmpDevicePkg/Library0% | 0% | 41% | 33% | 24%
EmbeddedPkg/Application0% | 0% | 57% | 34% | 8%
SourceLevelDebugPkg/Include0% | 0% | 49% | 38% | 11%
SecurityPkg/FvReportPei0% | 0% | 83% | 0% | 16%
SecurityPkg/RandomNumberGenerator0% | 0% | 0% | 38% | 61%
EmbeddedPkg/RealTimeClockRuntimeDxe0% | 0% | 0% | 100% | 0%
FmpDevicePkg/Include0% | 0% | 0% | 51% | 48%
FmpDevicePkg/CapsuleUpdatePolicyDxe0% | 0% | 0% | 0% | 100%
FmpDevicePkg/PrivateInclude0% | 0% | 0% | 0% | 100%
SourceLevelDebugPkg/DebugAgentDxe0% | 0% | 0% | 0% | 100%
SecurityPkg/EnrollFromDefaultKeysApp0% | 0% | 0% | 0% | 100%
SecurityPkg0% | 0% | 0% | 0% | 100%
FmpDevicePkg0% | 0% | 0% | 0% | 100%
EmbeddedPkg/EmbeddedMonotonicCounter0% | 0% | 0% | 0% | 100%
FatPkg0% | 0% | 0% | 0% | 100%
EmbeddedPkg/MetronomeDxe0% | 0% | 0% | 0% | 100%
SourceLevelDebugPkg0% | 0% | 0% | 0% | 100%
EmbeddedPkg0% | 0% | 0% | 0% | 100%
EmbeddedPkg/ResetRuntimeDxe0% | 0% | 0% | 0% | 100%
SourceLevelDebugPkg/DebugAgentPei0% | 0% | 0% | 0% | 100%
SecurityPkg/Hash2DxeCrypto0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
SecureBootConfigImpl.c
in SecurityPkg/VariableAuthenticated/SecureBootConfigDxe
3480 -
OpalDriver.c
in SecurityPkg/Tcg/Opal/OpalPassword
2083 -
Tcg2Dxe.c
in SecurityPkg/Tcg/Tcg2Dxe
1889 -
HddPasswordDxe.c
in SecurityPkg/HddPassword
1829 -
DebugAgent.c
in SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon
1668 -
AuthService.c
in SecurityPkg/Library/AuthVariableLib
1395 -
TcgStorageOpalCore.c
in SecurityPkg/Library/TcgStorageOpalLib
1287 -
DxeImageVerificationLib.c
in SecurityPkg/Library/DxeImageVerificationLib
1222 -
FmpDxe.c
in FmpDevicePkg/FmpDxe
1065 -
TcgStorageCore.c
in SecurityPkg/Library/TcgStorageCoreLib
981 1
DxeTcgPhysicalPresenceLib.c
in SecurityPkg/Library/DxeTcgPhysicalPresenceLib
954 -
TcgDxe.c
in SecurityPkg/Tcg/TcgDxe
916 -
OpalHii.c
in SecurityPkg/Tcg/Opal/OpalPassword
814 -
DxeTcg2PhysicalPresenceLib.c
in SecurityPkg/Library/DxeTcg2PhysicalPresenceLib
813 -
DirectoryManage.c
in FatPkg/EnhancedFatDxe
806 -
Tcg2Pei.c
in SecurityPkg/Tcg/Tcg2Pei
798 -
Tpm2NVStorage.c
in SecurityPkg/Library/Tpm2CommandLib
789 -
TcgStorageOpalUtil.c
in SecurityPkg/Library/TcgStorageOpalLib
737 -
GdbStub.c
in EmbeddedPkg/GdbStub
725 -
Fat.h
in FatPkg/EnhancedFatDxe
722 -
Pkcs7VerifyDxe.c
in SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe
716 -
MmcIdentification.c
in EmbeddedPkg/Universal/MmcDxe
671 -
Tcg2ConfigImpl.c
in SecurityPkg/Tcg/Tcg2Config
659 -
Tpm2Capability.c
in SecurityPkg/Library/Tpm2CommandLib
637 -
VirtualKeyboard.c
in EmbeddedPkg/Drivers/VirtualKeyboardDxe
629 -
DebugCommunicationLibUsb3Common.c
in SourceLevelDebugPkg/Library/DebugCommunicationLibUsb3
628 -
Processor.c
in EmbeddedPkg/GdbStub/Ia32
615 -
Processor.c
in EmbeddedPkg/GdbStub/X64
605 -
DebugCommunicationLibUsb.c
in SourceLevelDebugPkg/Library/DebugCommunicationLibUsb
587 -
DxeTpmMeasureBootLib.c
in SecurityPkg/Library/DxeTpmMeasureBootLib
568 -
TcgStorageUtil.c
in SecurityPkg/Library/TcgStorageCoreLib
559 -
SimpleTextInOut.c
in EmbeddedPkg/SimpleTextInOutSerial
550 -
TcgPei.c
in SecurityPkg/Tcg/TcgPei
545 -
VariableSupport.c
in FmpDevicePkg/FmpDxe
526 -
FwVol.c
in EmbeddedPkg/Library/PrePiLib
506 -
Tpm2DebugLibVerbose.c
in SecurityPkg/Library/Tpm2DebugLib
503 -
Tcg2Acpi.c
in SecurityPkg/Tcg/Tcg2Acpi
502 -
fdt_ro.c
in EmbeddedPkg/Library/FdtLib
491 24
TcgStorageCoreLib.h
in SecurityPkg/Include/Library
490 -
Tpm2Hierarchy.c
in SecurityPkg/Library/Tpm2CommandLib
488 -
Tpm2Integrity.c
in SecurityPkg/Library/Tpm2CommandLib
474 -
Processor.c
in EmbeddedPkg/GdbStub/Arm
468 -
fdt_overlay.c
in EmbeddedPkg/Library/FdtLib
457 15
FastbootTransportTcp.c
in EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe
456 -
Hob.c
in EmbeddedPkg/Library/PrePiHobLib
435 -
FileSpace.c
in FatPkg/EnhancedFatDxe
429 -
Tpm2CommandLib.h
in SecurityPkg/Include/Library
428 -
FmpDependencyLib.c
in FmpDevicePkg/Library/FmpDependencyLib
422 -
DxeTpm2MeasureBootLib.c
in SecurityPkg/Library/DxeTpm2MeasureBootLib
419 -
DiskCache.c
in FatPkg/EnhancedFatDxe
405 -
Files With Most Units (Top 13)
File# lines# units
fdt_ro.c
in EmbeddedPkg/Library/FdtLib
491 24
fdt_rw.c
in EmbeddedPkg/Library/FdtLib
356 23
fdt_overlay.c
in EmbeddedPkg/Library/FdtLib
457 15
libfdt.h
in EmbeddedPkg/Include
275 12
fdt_sw.c
in EmbeddedPkg/Library/FdtLib
186 11
libfdt_env.h
in EmbeddedPkg/Include
65 9
fdt.c
in EmbeddedPkg/Library/FdtLib
154 8
fdt_wip.c
in EmbeddedPkg/Library/FdtLib
67 6
fdt_addresses.c
in EmbeddedPkg/Library/FdtLib
34 2
fdt_empty_tree.c
in EmbeddedPkg/Library/FdtLib
24 1
fdt_strtoul.c
in EmbeddedPkg/Library/FdtLib
21 1
Mmc.c
in EmbeddedPkg/Universal/MmcDxe
304 1
TcgStorageCore.c
in SecurityPkg/Library/TcgStorageCoreLib
981 1
Files With Long Lines (Top 20)

There are 83 files with lines longer than 120 characters. In total, there are 512 long lines.

File# lines# units# long lines
DxeTcgPhysicalPresenceLib.c
in SecurityPkg/Library/DxeTcgPhysicalPresenceLib
954 - 46
DxeImageVerificationLib.c
in SecurityPkg/Library/DxeImageVerificationLib
1222 - 29
SecureBootConfigImpl.c
in SecurityPkg/VariableAuthenticated/SecureBootConfigDxe
3480 - 28
AuthService.c
in SecurityPkg/Library/AuthVariableLib
1395 - 27
FmpDxe.c
in FmpDevicePkg/FmpDxe
1065 - 26
Tcg2Dxe.c
in SecurityPkg/Tcg/Tcg2Dxe
1889 - 26
TcgStorageOpalCore.c
in SecurityPkg/Library/TcgStorageOpalLib
1287 - 23
DebugAgent.c
in SourceLevelDebugPkg/Library/DebugAgent/DebugAgentCommon
1668 - 23
Tpm2Object.c
in SecurityPkg/Library/Tpm2CommandLib
323 - 22
DxeTcg2PhysicalPresenceLib.c
in SecurityPkg/Library/DxeTcg2PhysicalPresenceLib
813 - 17
TcgStorageCore.c
in SecurityPkg/Library/TcgStorageCoreLib
981 1 17
DebugCommunicationLibUsb.c
in SourceLevelDebugPkg/Library/DebugCommunicationLibUsb
587 - 17
HddPasswordDxe.c
in SecurityPkg/HddPassword
1829 - 11
OpalHii.c
in SecurityPkg/Tcg/Opal/OpalPassword
814 - 11
Tcg2Pei.c
in SecurityPkg/Tcg/Tcg2Pei
798 - 11
Tpm2Capability.c
in SecurityPkg/Library/Tpm2CommandLib
637 - 9
FmpAuthenticationLibRsa2048Sha256.c
in SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256
214 - 7
Tcg2ConfigImpl.c
in SecurityPkg/Tcg/Tcg2Config
659 - 7
Diagnostics.c
in EmbeddedPkg/Universal/MmcDxe
190 - 6
Gpt.c
in FatPkg/FatPei
339 - 6