microsoft / vcrt-forwarders
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 7 units with 81 lines of code in units (0.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 2 medium size units (50 lines of code)
    • 1 small units (15 lines of code)
    • 4 very small units (16 lines of code)
0% | 0% | 61% | 18% | 19%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 60% | 0% | 39%
cs0% | 0% | 100% | 0% | 0%
cpp0% | 0% | 0% | 100% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 60% | 0% | 39%
Unity/Editor0% | 0% | 100% | 0% | 0%
140_release/vcrt_fwd_x64_release/msvcp140_app0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 7 longest units
Unit# linesMcCabe index# params
def GenerateSymbolMapping()
in GenForwarders.py
25 3 1
static InitVCRTForwarders()
in Unity/Editor/InitVCRTForwarders.cs
25 4 0
BOOL APIENTRY DllMain()
in 140_release/vcrt_fwd_x64_release/msvcp140_app/dllmain.cpp
15 5 3
def GetModules()
in GenForwarders.py
9 3 1
def GetOutputFolder()
in GenForwarders.py
3 2 3
def GetImportLibFolder()
in GenForwarders.py
2 1 1
def GetDumpbin()
in GenForwarders.py
2 1 0