facebookincubator / profilo
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 2,943 units with 38,663 lines of code in units (79.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 167 medium complex units (10,403 lines of code)
    • 121 simple units (4,380 lines of code)
    • 2,655 very simple units (23,880 lines of code)
0% | 0% | 26% | 11% | 61%
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
h0% | 0% | 32% | 8% | 59%
cpp0% | 0% | 16% | 20% | 62%
py0% | 0% | 17% | 15% | 66%
java0% | 0% | 5% | 18% | 75%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cpp/profiler0% | 0% | 32% | 8% | 58%
cpp/counters0% | 0% | 47% | 13% | 38%
python/profilo0% | 0% | 24% | 18% | 57%
cpp/perfevents0% | 0% | 23% | 25% | 51%
java/main0% | 0% | 4% | 20% | 75%
cpp/logger0% | 0% | 11% | 15% | 73%
cpp/writer0% | 0% | 10% | 11% | 78%
aidl/java0% | 0% | 19% | 0% | 80%
cpp/mmapbuf0% | 0% | 0% | 18% | 81%
cpp/atrace0% | 0% | 0% | 34% | 65%
cpp/systemcounters0% | 0% | 0% | 19% | 80%
cpp/util0% | 0% | 0% | 25% | 74%
cpp0% | 0% | 0% | 17% | 82%
cpp/codegen0% | 0% | 0% | 5% | 94%
cpp/jni0% | 0% | 0% | 0% | 100%
cpp/threadmetadata0% | 0% | 0% | 0% | 100%
cpp/mappings0% | 0% | 0% | 0% | 100%
cpp/api0% | 0% | 0% | 0% | 100%
website/src0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
66 25 1
75 24 3
52 22 1
89 21 2
86 20 3
85 18 1
60 18 1
62 16 4
71 16 0
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2
64 15 2