apple / AudioUnitSDK
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 329 units with 3,791 lines of code in units (69.2% of code).
    • 4 very long units (623 lines of code)
    • 9 long units (565 lines of code)
    • 26 medium size units (770 lines of code)
    • 52 small units (750 lines of code)
    • 238 very small units (1,083 lines of code)
16% | 14% | 20% | 19% | 28%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp19% | 17% | 23% | 19% | 20%
h0% | 0% | 3% | 22% | 74%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Source16% | 14% | 20% | 19% | 28%
EmptyPlugIns0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
180 36 5
167 27 5
163 38 4
113 19 7
92 19 1
OSStatus AUBase::DoRender()
in Source/AUBase.cpp
86 15 5
63 6 5
58 15 3
OSStatus AUBase::DoProcess()
in Source/AUBase.cpp
58 11 4
OSStatus AUEffectBase::Render()
in Source/AUEffectBase.cpp
53 12 3
52 10 3
OSStatus AUBase::SaveState()
in Source/AUBase.cpp
52 8 1
static OSStatus AUMethodGetProperty()
in Source/AUPlugInDispatch.cpp
51 9 6
void AUElement::SaveState()
in Source/AUScopeElement.cpp
50 11 2
OSStatus AUEffectBase::Initialize()
in Source/AUEffectBase.cpp
46 21 0
44 6 5
41 4 4
39 9 5
AudioComponentMethod AUBaseLookup::Lookup()
in Source/AUPlugInDispatch.cpp
38 16 1
35 7 5