microsoft / DirectX-Debugging-Tools
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 15 units with 85 lines of code in units (26.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 1 medium size units (21 lines of code)
    • 1 small units (12 lines of code)
    • 13 very small units (52 lines of code)
0% | 0% | 24% | 14% | 61%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 0% | 24% | 14% | 61%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
D3DDred-WinDbg0% | 0% | 24% | 14% | 61%
Alternative Visuals
Longest Units
Top 15 longest units
Unit# linesMcCabe index# params
get Data()
in D3DDred-WinDbg/D3DDred.js
21 5 0
function SelectNameHelper()
in D3DDred-WinDbg/D3DDred.js
12 2 2
get AutoBreadcrumbNodes()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get DeviceRemovedReason()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get AutoBreadcrumbNodes()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get PageFaultVA()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get ExistingAllocations()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get RecentFreedAllocations()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get DeviceRemovedReason()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get AutoBreadcrumbNodes()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get PageFaultVA()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get ExistingAllocations()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get RecentFreedAllocations()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get ObjectName()
in D3DDred-WinDbg/D3DDred.js
4 1 0
get AllocationType()
in D3DDred-WinDbg/D3DDred.js
4 1 0