microsoft / mu_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 555 files with 174,836 lines of code.
    • 34 very long files (101,111 lines of code)
    • 32 long files (22,455 lines of code)
    • 86 medium size files (27,517 lines of codeclsfd_ftr_w_mp_ins)
    • 83 small files (11,886 lines of code)
    • 320 very small files (11,867 lines of code)
57% | 12% | 15% | 6% | 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
h87% | 2% | 1% | 2% | 6%
c21% | 25% | 34% | 11% | 6%
html0% | 100% | 0% | 0% | 0%
py0% | 0% | 43% | 24% | 31%
yaml0% | 0% | 0% | 0% | 100%
nasm0% | 0% | 0% | 0% | 100%
inc0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
MsGraphicsPkg82% | 7% | 4% | 2% | 2%
XmlSupportPkg72% | 5% | 16% | 1% | 3%
DfciPkg7% | 26% | 45% | 12% | 8%
HidPkg26% | 27% | 24% | 8% | 14%
UefiTestingPkg0% | 40% | 31% | 19% | 8%
PcBdsPkg0% | 44% | 32% | 0% | 23%
MsWheaPkg0% | 17% | 41% | 14% | 26%
MsCorePkg0% | 10% | 29% | 28% | 31%
MfciPkg0% | 25% | 32% | 18% | 23%
AdvLoggerPkg0% | 0% | 48% | 27% | 23%
ZeroTouchPkg0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
UnlockBitmap256.h
in MsGraphicsPkg/Library/ColorBarDisplayDeviceStateLib/Resources
10631 -
FontPackage_Selawik_Regular_72pt.h
in MsGraphicsPkg/Include/Resources
7748 -
FontPackage_Selawik_Regular_36pt_Fixed.h
in MsGraphicsPkg/Include/Resources
5634 -
FontPackage_Selawik_Regular_48pt.h
in MsGraphicsPkg/Include/Resources
5610 -
FontPackage_Selawik_Regular_36pt.h
in MsGraphicsPkg/Include/Resources
4506 -
FontPackage_Selawik_Regular_28pt_Fixed.h
in MsGraphicsPkg/Include/Resources
4243 -
FontPackage_Selawik_Regular_24pt_Fixed.h
in MsGraphicsPkg/Include/Resources
3815 -
FontPackage_Selawik_Regular_28pt.h
in MsGraphicsPkg/Include/Resources
3760 -
xml_fasterxml.c
in XmlSupportPkg/Library/XmlTreeLib/fasterxml
3409 1
FontPackage_Selawik_Regular_24pt.h
in MsGraphicsPkg/Include/Resources
3404 -
FontPackage_Selawik_Regular_22pt_Fixed.h
in MsGraphicsPkg/Include/Resources
3387 -
FontPackage_Selawik_Regular_22pt.h
in MsGraphicsPkg/Include/Resources
3195 -
FontPackage_Selawik_Regular_18pt_Fixed.h
in MsGraphicsPkg/Include/Resources
2959 -
FontPackage_Selawik_Regular_18pt.h
in MsGraphicsPkg/Include/Resources
2846 -
UnlockBitmap128.h
in MsGraphicsPkg/Library/ColorBarDisplayDeviceStateLib/Resources
2663 -
FontPackage_Selawik_Regular_14pt.h
in MsGraphicsPkg/Include/Resources
2557 -
FontPackage_Selawik_Regular_12pt.h
in MsGraphicsPkg/Include/Resources
2360 -
FontPackage_Selawik_Regular_13pt.h
in MsGraphicsPkg/Include/Resources
2358 -
OnScreenKeyboardDriver.c
in MsGraphicsPkg/OnScreenKeyboardDxe
2193 -
FontPackage_Selawik_Regular_10pt.h
in MsGraphicsPkg/Include/Resources
2174 -
FormDisplay.c
in MsGraphicsPkg/DisplayEngineDxe
2128 3
FontPackage_Selawik_Regular_9pt.h
in MsGraphicsPkg/Include/Resources
2058 -
xml_xmlstructure.c
in XmlSupportPkg/Library/XmlTreeLib/fasterxml
1907 -
FontPackage_Selawik_Regular_11pt_Fixed.h
in MsGraphicsPkg/Include/Resources
1889 -
FontPackage_Selawik_Regular_7pt.h
in MsGraphicsPkg/Include/Resources
1888 -
FontPackage_Selawik_Regular_5pt.h
in MsGraphicsPkg/Include/Resources
1709 -
FontPackage_Selawik_Regular_8pt_Fixed.h
in MsGraphicsPkg/Include/Resources
1568 -
XmlTreeLib.c
in XmlSupportPkg/Library/XmlTreeLib
1368 1
QrEncoderLib.c
in MsGraphicsPkg/Library/QrEncoderLib
1345 -
DfciRequest.c
in DfciPkg/Application/DfciMenu
1320 1
KeyboardIcon_Medium.h
in MsGraphicsPkg/OnScreenKeyboardDxe/Resources
1219 -
FontPackage_Selawik_Regular_6pt_Fixed.h
in MsGraphicsPkg/Include/Resources
1140 -
HidKeyboard.c
in HidPkg/HidKeyboardDxe
1111 1
RenderingEngine.c
in MsGraphicsPkg/RenderingEngineDxe
1009 1
WindowManager.c
in MsGraphicsPkg/SimpleWindowManagerDxe
979 1
Compress.c
in DfciPkg/Application/EnrollInDfci
956 -
SemmUserAuthDialog.c
in MsGraphicsPkg/Library/SwmDialogsLib
953 1
MorLockTestApp.c
in UefiTestingPkg/FunctionalSystemTests/MorLockTestApp
898 -
ListBox.c
in MsGraphicsPkg/Library/SimpleUIToolKit
884 3
PasswordDialog.c
in MsGraphicsPkg/Library/SwmDialogsLib
855 1
DeviceBootManagerLib.c
in PcBdsPkg/Library/DeviceBootManagerLib
841 -
UnlockBitmap112.h
in MsGraphicsPkg/Library/ColorBarDisplayDeviceStateLib/Resources
825 -
HeapGuardTestApp.c
in UefiTestingPkg/FunctionalSystemTests/HeapGuardTest/App
816 -
DfciMenu.c
in DfciPkg/Application/DfciMenu
759 -
HwhMenu.c
in MsWheaPkg/HwhMenu
756 -
CapsulePersistence.c
in MsCorePkg/Library/DxeCapsulePersistenceLib
735 -
SettingsManagerProvider.c
in DfciPkg/SettingsManager
727 -
MfciDxe.c
in MfciPkg/MfciDxe
721 -
UnlockBitmap64.h
in MsGraphicsPkg/Library/ColorBarDisplayDeviceStateLib/Resources
679 -
PagingAuditCommon.c
in UefiTestingPkg/AuditTests/PagingAudit/UEFI
679 -
Files With Most Units (Top 20)
File# lines# units
MemoryRangeObjects.py
in UefiTestingPkg/AuditTests/PagingAudit/Windows
224 21
MsBootPolicy.c
in PcBdsPkg/MsBootPolicy
510 13
DecodeUefiLog.py
in AdvLoggerPkg/Application/DecodeUefiLog
310 12
BinaryParsing.py
in UefiTestingPkg/AuditTests/PagingAudit/Windows
84 5
PagingReportGenerator.py
in UefiTestingPkg/AuditTests/PagingAudit/Windows
199 5
UefiVariablesSupportLib.py
in AdvLoggerPkg/Application/DecodeUefiLog
77 4
MathLib.c
in MsCorePkg/Library/MathLib
170 3
FormDisplay.c
in MsGraphicsPkg/DisplayEngineDxe
2128 3
ListBox.c
in MsGraphicsPkg/Library/SimpleUIToolKit
884 3
IVRSTableAudit.py
in UefiTestingPkg/AuditTests/DMAProtectionAudit/Windows
101 3
UefiVariablesSupportLib.py
in UefiTestingPkg/AuditTests/UefiVarLockAudit/Windows
60 3
Bitmap.c
in MsGraphicsPkg/Library/SimpleUIToolKit
150 2
Button.c
in MsGraphicsPkg/Library/SimpleUIToolKit
397 2
EditBox.c
in MsGraphicsPkg/Library/SimpleUIToolKit
543 2
Label.c
in MsGraphicsPkg/Library/SimpleUIToolKit
234 2
ToggleSwitch.c
in MsGraphicsPkg/Library/SimpleUIToolKit
564 2
DMARTableAudit.py
in UefiTestingPkg/AuditTests/DMAProtectionAudit/Windows
88 2
DfciRequest.c
in DfciPkg/Application/DfciMenu
1320 1
CertSupport.c
in DfciPkg/IdentityAndAuthManager
348 1
UiSupport.c
in DfciPkg/IdentityAndAuthManager
404 1
Files With Long Lines (Top 20)

There are 161 files with lines longer than 120 characters. In total, there are 1187 long lines.

File# lines# units# long lines
MousePointer_Medium.h
in MsGraphicsPkg/SimpleWindowManagerDxe/Resources
140 - 134
WindowManager.c
in MsGraphicsPkg/SimpleWindowManagerDxe
979 1 66
HidKeyboard.c
in HidPkg/HidKeyboardDxe
1111 1 40
DxePaging_template.html
in UefiTestingPkg/AuditTests/PagingAudit/Windows
620 - 40
SmmPaging_template.html
in UefiTestingPkg/AuditTests/PagingAudit/Windows
620 - 39
OnScreenKeyboardDriver.c
in MsGraphicsPkg/OnScreenKeyboardDxe
2193 - 35
MorLockTestApp.c
in UefiTestingPkg/FunctionalSystemTests/MorLockTestApp
898 - 35
FormDisplay.c
in MsGraphicsPkg/DisplayEngineDxe
2128 3 33
SimpleWindowManagerProtocol.c
in MsGraphicsPkg/SimpleWindowManagerDxe
422 - 26
MfciDxe.c
in MfciPkg/MfciDxe
721 - 25
ListBox.c
in MsGraphicsPkg/Library/SimpleUIToolKit
884 3 25
MemmapAndMatTestApp.c
in UefiTestingPkg/FunctionalSystemTests/MemmapAndMatTestApp
564 - 25
HeapGuardTestApp.c
in UefiTestingPkg/FunctionalSystemTests/HeapGuardTest/App
816 - 23
DfciManager.c
in DfciPkg/DfciManager
656 - 18
UiRectangle.c
in MsGraphicsPkg/Library/BaseUiRectangleLib
339 - 18
AuthManagerProvision.c
in DfciPkg/IdentityAndAuthManager
635 - 17
XmlTreeLib.c
in XmlSupportPkg/Library/XmlTreeLib
1368 1 17
DfciVarPolicies.c
in DfciPkg/DfciManager
177 - 16
PagingReportGenerator.py
in UefiTestingPkg/AuditTests/PagingAudit/Windows
199 5 16
RenderingEngine.c
in MsGraphicsPkg/RenderingEngineDxe
1009 1 15