microsoft / DbgShell
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 392 files with 147,103 lines of code.
    • 29 very long files (76,138 lines of code)
    • 35 long files (25,436 lines of code)
    • 78 medium size files (26,241 lines of codeclsfd_ftr_w_mp_ins)
    • 72 small files (10,613 lines of code)
    • 178 very small files (8,675 lines of code)
51% | 17% | 17% | 7% | 5%
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
cs38% | 22% | 21% | 9% | 7%
h94% | 2% | 2% | 0% | <1%
psm194% | 0% | 5% | 0% | 0%
cpp88% | 0% | 10% | 0% | 1%
in0% | 71% | 18% | 9% | 0%
ps10% | 0% | 61% | 19% | 19%
vcxproj0% | 0% | 69% | 30% | 0%
xslt0% | 0% | 0% | 100% | 0%
filters0% | 0% | 0% | 0% | 100%
psd10% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
ps1xml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
DbgProvider/internal87% | 4% | 3% | 3% | 1%
DbgProvider/public24% | 25% | 21% | 15% | 13%
ClrMemDiag/Desktop72% | 11% | 11% | 2% | <1%
DbgProvider63% | 9% | 16% | 5% | 6%
DbgEngWrapper82% | 9% | 7% | 0% | <1%
DbgShell42% | 26% | 23% | 4% | 3%
ClrMemDiag/Utilities40% | 18% | 30% | 1% | 9%
ClrMemDiag/Debugger17% | 36% | 30% | 9% | 6%
ClrMemDiag/ICorDebug62% | 0% | 31% | 5% | 0%
ClrMemDiag26% | 46% | 24% | 0% | 2%
ClrMemDiag/Native0% | 0% | 74% | 21% | 4%
DbgShellExt0% | 0% | 85% | 0% | 14%
DbgProvider/AfeProxies0% | 0% | 78% | 21% | 0%
ROOT0% | 0% | 0% | 79% | 20%
DbgNativeUtil0% | 0% | 0% | 71% | 28%
DbgProvider/Properties0% | 0% | 0% | 0% | 100%
ClrMemDiag/Properties0% | 0% | 0% | 0% | 100%
DbgShell/Properties0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
dbgeng.h
in DbgProvider/internal/Native
17181 -
DbgEngDebugger.cs
in DbgProvider/public/Debugger
4989 272
DbgEngWrapper.cpp
in DbgEngWrapper
4419 346
Debugger.psm1
in DbgProvider
4137 -
DbgHelp.cs
in DbgProvider/internal/Native
3314 111
cvconst.h
in DbgProvider/internal/Native
3264 -
dbghelp.h
in DbgProvider/internal/Native
3215 -
CV_HREG_e.cs
in DbgProvider/internal/Native
2900 -
Debugger.Formatting.psm1
in DbgProvider
2527 -
ConsoleControl.cs
in DbgShell
2252 54
legacyruntime.cs
in ClrMemDiag/Desktop
2037 59
DbgProvider.cs
in DbgProvider/public
2029 118
DbgValue.cs
in DbgProvider/public/Debugger
1703 95
CvInfo.cs
in ClrMemDiag/Utilities/PDB
1666 -
CaStringUtil.cs
in DbgProvider/internal
1616 43
ICorDebugWrappers.cs
in ClrMemDiag/ICorDebug
1611 14
types.cs
in ClrMemDiag/Desktop
1538 72
datatarget.cs
in ClrMemDiag
1530 111
Util.cs
in DbgProvider/internal
1527 91
heap.cs
in ClrMemDiag/Desktop
1496 59
DumpReader.cs
in ClrMemDiag/Utilities
1465 92
v45runtime.cs
in ClrMemDiag/Desktop
1422 60
DbgEngWrapper.h
in DbgEngWrapper
1385 8
NamespaceItem.cs
in DbgProvider/internal
1298 89
runtimebase.cs
in ClrMemDiag/Desktop
1254 34
Enums.cs
in ClrMemDiag/Debugger
1209 -
ColorConsoleHost.cs
in DbgShell
1092 41
Structs.cs
in ClrMemDiag/Debugger
1054 11
ColorHostUserInterface.cs
in DbgShell
1008 36
RunspaceSettings.cs
in DbgProvider/internal
989 31
DbgEventArgs.cs
in DbgProvider/public/Debugger
989 63
in
Debugger.Format.ps1xml.in
in DbgProvider
969 -
DbgSymbol.cs
in DbgProvider/public/Debugger
947 58
ClrRuntime.cs
in ClrMemDiag
885 52
IDebugControl6.cs
in ClrMemDiag/Debugger
850 -
pefile.cs
in ClrMemDiag/Utilities
849 34
IDebugControl5.cs
in ClrMemDiag/Debugger
844 -
ColorHostRawUserInterface.cs
in DbgShell
832 7
LogManager.cs
in DbgProvider/internal
824 32
IDebugControl4.cs
in ClrMemDiag/Debugger
807 -
ColorString.cs
in DbgProvider/public
796 108
IDebugSymbols5.cs
in ClrMemDiag/Debugger
794 -
FormatBaseCommand.cs
in DbgProvider/public/Formatting
791 37
IDebugSymbols4.cs
in ClrMemDiag/Debugger
784 -
TestStuffCommand.cs
in DbgProvider/public/Commands
776 124
IDebugSymbols3.cs
in ClrMemDiag/Debugger
725 -
fields.cs
in ClrMemDiag/Desktop
725 26
TransformationAttributes.cs
in DbgProvider/public/Commands
712 22
CvRegMap.cs
in DbgProvider/public/Debugger
667 2
internal.cs
in ClrMemDiag
665 57
Files With Most Units (Top 20)
File# lines# units
DbgEngWrapper.cpp
in DbgEngWrapper
4419 346
DbgEngDebugger.cs
in DbgProvider/public/Debugger
4989 272
TestStuffCommand.cs
in DbgProvider/public/Commands
776 124
DbgProvider.cs
in DbgProvider/public
2029 118
datatarget.cs
in ClrMemDiag
1530 111
DbgHelp.cs
in DbgProvider/internal/Native
3314 111
ColorString.cs
in DbgProvider/public
796 108
DbgValue.cs
in DbgProvider/public/Debugger
1703 95
DumpReader.cs
in ClrMemDiag/Utilities
1465 92
Util.cs
in DbgProvider/internal
1527 91
NamespaceItem.cs
in DbgProvider/internal
1298 89
types.cs
in ClrMemDiag/Desktop
1538 72
DbgEventArgs.cs
in DbgProvider/public/Debugger
989 63
DbgBaseCommand.cs
in DbgProvider/public/Commands
527 62
v45runtime.cs
in ClrMemDiag/Desktop
1422 60
heap.cs
in ClrMemDiag/Desktop
1496 59
legacyruntime.cs
in ClrMemDiag/Desktop
2037 59
DbgSymbol.cs
in DbgProvider/public/Debugger
947 58
internal.cs
in ClrMemDiag
665 57
ConsoleControl.cs
in DbgShell
2252 54
Files With Long Lines (Top 20)

There are 185 files with lines longer than 120 characters. In total, there are 1579 long lines.

File# lines# units# long lines
ICorDebugWrappers.cs
in ClrMemDiag/ICorDebug
1611 14 151
Debugger.psm1
in DbgProvider
4137 - 87
Debugger.Formatting.psm1
in DbgProvider
2527 - 69
ConsoleControl.cs
in DbgShell
2252 54 59
TestStuffCommand.cs
in DbgProvider/public/Commands
776 124 56
DbgEngDebugger.cs
in DbgProvider/public/Debugger
4989 272 53
DbgShellExt.cpp
in DbgShellExt
498 13 35
ICorDebugHelpers.cs
in ClrMemDiag/ICorDebug
153 6 34
datatarget.cs
in ClrMemDiag
1530 111 34
pefile.cs
in ClrMemDiag/Utilities
849 34 33
ColorHostRawUserInterface.cs
in DbgShell
832 7 32
vcxproj
DbgShellExt.vcxproj
in DbgShellExt
257 - 31
Util.cs
in DbgProvider/internal
1527 91 30
DumpReader.cs
in ClrMemDiag/Utilities
1465 92 23
vcxproj
DbgEngWrapper.vcxproj
in DbgEngWrapper
204 - 23
lockinspection.cs
in ClrMemDiag/Desktop
541 16 22
SymbolLocator.Async.cs
in ClrMemDiag/Utilities
428 26 21
v45runtime.cs
in ClrMemDiag/Desktop
1422 60 20
heap.cs
in ClrMemDiag/Desktop
1496 59 19
CaStringUtil.cs
in DbgProvider/internal
1616 43 18