android / tuningfork
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 310 units with 3,379 lines of code in units (64.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (171 lines of code)
    • 23 simple units (660 lines of code)
    • 282 very simple units (2,548 lines of code)
0% | 0% | 5% | 19% | 75%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cs0% | 0% | 5% | 19% | 75%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Runtime/Scripts/Proto0% | 0% | 21% | 37% | 40%
Runtime/Scripts0% | 0% | 5% | 1% | 92%
Editor/Scripts0% | 0% | 1% | 25% | 73%
Editor/Scripts/Proto0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static Trend FindTrend()
in Editor/Scripts/TrendHelper.cs
25 12 2
public bool Equals()
in Runtime/Scripts/Proto/Tuningfork.cs
18 12 1
public void MergeFrom()
in Runtime/Scripts/Proto/Tuningfork.cs
49 12 1
ErrorCode StartInternal()
in Runtime/Scripts/AndroidPerformanceTunerInternal.cs
46 11 0
public void MergeFrom()
in Runtime/Scripts/Proto/Tuningfork.cs
33 11 1
void RenderPluginStatus()
in Editor/Scripts/IntegrationStepsEditor.cs
63 9 0
public override int GetHashCode()
in Runtime/Scripts/Proto/Tuningfork.cs
13 9 0
public void WriteTo()
in Runtime/Scripts/Proto/Tuningfork.cs
35 9 1
public int CalculateSize()
in Runtime/Scripts/Proto/Tuningfork.cs
29 9 0
static string CheckForErrors()
in Editor/Scripts/NewEnumWindow.cs
15 8 1
Type FindAssemblyType()
in Editor/Scripts/MessageBuilder.cs
16 8 1
void OnGUI()
in Editor/Scripts/DeleteEnumWindow.cs
58 8 0
void OnGUI()
in Editor/Scripts/AndroidPerformanceTunerWindow.cs
43 8 0
public virtual void OnGUI()
in Editor/Scripts/MessageEditor.cs
46 8 0
void OnGUI()
in Editor/Scripts/NewEnumWindow.cs
33 7 0
static bool CompileProto()
in Editor/Scripts/ProtocCompiler.cs
39 7 3
public bool Equals()
in Runtime/Scripts/Proto/Tuningfork.cs
13 7 1
public bool Equals()
in Runtime/Scripts/Proto/Tuningfork.cs
13 7 1
public void MergeFrom()
in Runtime/Scripts/Proto/Tuningfork.cs
27 7 1
static Trend MergeTrends()
in Editor/Scripts/TrendHelper.cs
10 6 1