facebookincubator / gloo
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 752 units with 9,373 lines of code in units (35.2% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (455 lines of code)
    • 24 medium complex units (1,639 lines of code)
    • 43 simple units (1,537 lines of code)
    • 682 very simple units (5,742 lines of code)
0% | 4% | 17% | 16% | 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
cc0% | 5% | 18% | 19% | 57%
h0% | 4% | 9% | 8% | 77%
py0% | 0% | 62% | 14% | 22%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
gloo0% | 6% | 26% | 15% | 51%
gloo/benchmark0% | 16% | 6% | 9% | 66%
gloo/transport/tcp0% | 0% | 19% | 20% | 59%
tools/amd_build/pyHIPIFY0% | 0% | 62% | 14% | 22%
gloo/transport/uv0% | 0% | 7% | 15% | 76%
gloo/transport/ibverbs0% | 0% | 0% | 26% | 73%
gloo/rendezvous0% | 0% | 0% | 28% | 71%
gloo/mpi0% | 0% | 0% | 60% | 39%
gloo/common0% | 0% | 0% | 0% | 100%
gloo/transport0% | 0% | 0% | 0% | 100%
gloo/nccl0% | 0% | 0% | 0% | 100%
gloo/mpi/example0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
224 42 2
128 40 0
103 27 0
180 24 3
83 23 1
93 23 0
137 23 1
85 21 0
133 17 3
56 15 0
63 15 0
23 14 2
30 14 2
54 14 1
55 14 0
51 14 0
66 14 0
84 13 1
55 12 2
61 12 1
38 12 0
32 11 2
34 11 0
48 11 1
57 11 1
50 11 1
71 11 2
38 10 2
28 10 0
62 10 0
33 10 1
30 10 1
33 10 5
67 10 0
48 9 3
33 9 1
41 9 0
46 9 1
53 9 2
46 9 1
47 9 1
33 9 1
56 9 1
61 9 1
41 8 2
40 8 4
26 8 0
38 8 1
38 7 1
25 7 2