android / tuningfork
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 310 units with 3,379 lines of code in units (64.7% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (121 lines of code)
    • 36 medium size units (1,115 lines of code)
    • 74 small units (1,061 lines of code)
    • 198 very small units (1,082 lines of code)
0% | 3% | 32% | 31% | 32%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs0% | 3% | 32% | 31% | 32%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Editor/Scripts0% | 6% | 37% | 29% | 26%
Runtime/Scripts/Proto0% | 0% | 50% | 35% | 14%
Runtime/Scripts0% | 0% | 17% | 32% | 50%
Editor/Scripts/Proto0% | 0% | 24% | 34% | 41%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void RenderPluginStatus()
in Editor/Scripts/IntegrationStepsEditor.cs
63 9 0
void OnGUI()
in Editor/Scripts/DeleteEnumWindow.cs
58 8 0
public void MergeFrom()
in Runtime/Scripts/Proto/Tuningfork.cs
49 12 1
public void OnGUI()
in Editor/Scripts/InstrumentationSettingsEditor.cs
47 6 0
public virtual void OnGUI()
in Editor/Scripts/MessageEditor.cs
46 8 0
ErrorCode StartInternal()
in Runtime/Scripts/AndroidPerformanceTunerInternal.cs
46 11 0
void OnGUI()
in Editor/Scripts/AndroidPerformanceTunerWindow.cs
43 8 0
public bool Build()
in Editor/Scripts/DevDescriptor.cs
41 4 0
static bool CompileProto()
in Editor/Scripts/ProtocCompiler.cs
39 7 3
static Initializer()
in Editor/Scripts/Initializer.cs
36 2 0
static bool CreateDescriptor()
in Editor/Scripts/ProtocCompiler.cs
36 6 2
public void WriteTo()
in Runtime/Scripts/Proto/Tuningfork.cs
35 9 1
void RenderMessages()
in Editor/Scripts/FidelityParametersEditor.cs
34 5 0
void RenderAdvancedSettings()
in Editor/Scripts/InstrumentationSettingsEditor.cs
34 5 0
void RebuildList()
in Editor/Scripts/InstrumentationSettingsEditor.cs
34 1 0
void OnGUI()
in Editor/Scripts/NewEnumWindow.cs
33 7 0
public void MergeFrom()
in Runtime/Scripts/Proto/Tuningfork.cs
33 11 1
public Result StartLoadingGroup()
in Runtime/Scripts/AdditionalLibraryMethods.cs
32 5 2
static TuningforkReflection()
in Runtime/Scripts/Proto/Tuningfork.cs
30 1 0
public int CalculateSize()
in Runtime/Scripts/Proto/Tuningfork.cs
29 9 0