microsoft / mu_oem_sample
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 43 files with 6,517 lines of code.
    • 1 very long files (1,191 lines of code)
    • 2 long files (1,602 lines of code)
    • 7 medium size files (2,186 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (717 lines of code)
    • 28 very small files (821 lines of code)
18% | 24% | 33% | 11% | 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
c22% | 18% | 41% | 11% | 6%
h0% | 63% | 0% | 0% | 36%
inc0% | 0% | 0% | 76% | 23%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
OemPkg/FrontPage65% | 0% | 25% | 0% | 9%
OemPkg/BootMenu0% | 94% | 0% | 0% | 5%
OemPkg/Library/MsSecureBootLib0% | 58% | 41% | 0% | 0%
OemPkg/Library/PasswordPolicyLib0% | 0% | 90% | 0% | 9%
OemPkg/Library/MsBootPolicyLib0% | 0% | 100% | 0% | 0%
OemPkg/Library/MsSecureBootModeSettingDxeLib0% | 0% | 100% | 0% | 0%
OemPkg/Library/PasswordStoreLib0% | 0% | 94% | 0% | 5%
OemPkg/Library/MuUefiVersionLib0% | 0% | 100% | 0% | 0%
OemPkg/Override/MdeModulePkg0% | 0% | 0% | 100% | 0%
OemPkg/Library/DfciDeviceIdSupportLib0% | 0% | 0% | 100% | 0%
OemPkg/Library/MsNVBootReasonLib0% | 0% | 0% | 100% | 0%
OemPkg/Library/DfciUiSupportLib0% | 0% | 0% | 100% | 0%
ROOT0% | 0% | 0% | 76% | 23%
OemPkg/Include/Library0% | 0% | 0% | 0% | 100%
OemPkg/Library/MsAltBootLib0% | 0% | 0% | 0% | 100%
OemPkg/FrontpageButtonsVolumeUp0% | 0% | 0% | 0% | 100%
OemPkg0% | 0% | 0% | 0% | 100%
OemPkg/Library/PasswordPolicyLibNull0% | 0% | 0% | 0% | 100%
OemPkg/DeviceStatePei0% | 0% | 0% | 0% | 100%
OemPkg/Library/BootGraphicsProviderLib0% | 0% | 0% | 0% | 100%
OemPkg/Include/Protocol0% | 0% | 0% | 0% | 100%
OemPkg/Include/Guid0% | 0% | 0% | 0% | 100%
OemPkg/Library/DfciGroupLib0% | 0% | 0% | 0% | 100%
OemPkg/Library/PlatformKeyLibNull0% | 0% | 0% | 0% | 100%
OemPkg/Include/Settings0% | 0% | 0% | 0% | 100%
Longest Files (Top 43)
File# lines# units
FrontPage.c
in OemPkg/FrontPage
1191 4
BootMenu.c
in OemPkg/BootMenu
962 2
MsSecureBootDefaultVars.h
in OemPkg/Library/MsSecureBootLib
640 -
FrontPageUi.c
in OemPkg/FrontPage
460 1
MsSecureBootLib.c
in OemPkg/Library/MsSecureBootLib
445 -
PasswordPolicyLib.c
in OemPkg/Library/PasswordPolicyLib
348 -
MsBootPolicyLib.c
in OemPkg/Library/MsBootPolicyLib
292 2
SecureBootModeSetting.c
in OemPkg/Library/MsSecureBootModeSettingDxeLib
217 -
PasswordStoreLib.c
in OemPkg/Library/PasswordStoreLib
216 -
MuUefiVersionLib.c
in OemPkg/Library/MuUefiVersionLib
208 -
BootManagerPolicyDxe.c
in OemPkg/Override/MdeModulePkg/Universal/BootManagerPolicyDxe
169 -
DfciDeviceIdSupportLib.c
in OemPkg/Library/DfciDeviceIdSupportLib
155 -
MsNVBootReasonLib.c
in OemPkg/Library/MsNVBootReasonLib
148 -
DfciUiSupportLib.c
in OemPkg/Library/DfciUiSupportLib
143 -
FrontpageDsc.inc
in root
102 -
MsAltBootLib.c
in OemPkg/Library/MsAltBootLib
69 -
FrontpageButtonsVolumeUp.c
in OemPkg/FrontpageButtonsVolumeUp
67 -
OemPkg.ci.yaml
in OemPkg
65 -
BootMenu.h
in OemPkg/BootMenu
56 -
PasswordPolicyLibNull.c
in OemPkg/Library/PasswordPolicyLibNull
49 -
PasswordPolicyLib.h
in OemPkg/Include/Library
44 -
DeviceStatePei.c
in OemPkg/DeviceStatePei
42 -
BootGraphicsProviderLib.c
in OemPkg/Library/BootGraphicsProviderLib
37 -
PasswordPolicyInternal.h
in OemPkg/Library/PasswordPolicyLib
35 -
FrontPage.h
in OemPkg/FrontPage
33 -
FrontPageVfr.h
in OemPkg/FrontPage
33 -
FrontpageFdf.inc
in root
32 -
ButtonServices.h
in OemPkg/Include/Protocol
28 -
FrontPageConfigAccess.c
in OemPkg/FrontPage
27 -
String.c
in OemPkg/FrontPage
27 -
MsSecureBootLib.h
in OemPkg/Include/Library
24 -
DfciGroups.c
in OemPkg/Library/DfciGroupLib
24 -
FrontPageUi.h
in OemPkg/FrontPage
21 -
FrontPageConfigAccess.h
in OemPkg/FrontPage
20 -
MsNVBootReason.h
in OemPkg/Include/Guid
18 -
String.h
in OemPkg/FrontPage
15 -
PasswordStoreInternal.h
in OemPkg/Library/PasswordStoreLib
13 -
PlatformKeyLib.h
in OemPkg/Include/Library
9 -
MsFrontPageAuthTokenProtocol.h
in OemPkg/Include/Protocol
8 -
PlatformKeyLibNull.c
in OemPkg/Library/PlatformKeyLibNull
8 -
PasswordStoreVariable.h
in OemPkg/Include/Guid
7 -
FrontPageSettings.h
in OemPkg/Include/Settings
5 -
MsAltBootVariables.h
in OemPkg/Library/MsAltBootLib
5 -
Files With Most Units (Top 4)
File# lines# units
FrontPage.c
in OemPkg/FrontPage
1191 4
BootMenu.c
in OemPkg/BootMenu
962 2
MsBootPolicyLib.c
in OemPkg/Library/MsBootPolicyLib
292 2
FrontPageUi.c
in OemPkg/FrontPage
460 1
Files With Long Lines (Top 9)

There are 9 files with lines longer than 120 characters. In total, there are 108 long lines.

File# lines# units# long lines
FrontPageUi.c
in OemPkg/FrontPage
460 1 37
BootMenu.c
in OemPkg/BootMenu
962 2 35
FrontPage.c
in OemPkg/FrontPage
1191 4 21
DfciDeviceIdSupportLib.c
in OemPkg/Library/DfciDeviceIdSupportLib
155 - 4
MsSecureBootLib.c
in OemPkg/Library/MsSecureBootLib
445 - 3
SecureBootModeSetting.c
in OemPkg/Library/MsSecureBootModeSettingDxeLib
217 - 3
FrontpageDsc.inc
in root
102 - 2
PasswordPolicyLib.c
in OemPkg/Library/PasswordPolicyLib
348 - 2
BootManagerPolicyDxe.c
in OemPkg/Override/MdeModulePkg/Universal/BootManagerPolicyDxe
169 - 1