azure / sonic-sairedis.msft
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
6% | 4% | 16% | 17% | 55%
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
cpp6% | 4% | 16% | 17% | 55%
pl0% | 0% | 19% | 20% | 59%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
meta21% | 0% | 15% | 13% | 49%
saiplayer29% | 6% | 23% | 13% | 26%
saidiscovery44% | 0% | 36% | 7% | 11%
vslib1% | 2% | 14% | 22% | 59%
syncd0% | 10% | 23% | 20% | 45%
lib0% | 4% | 7% | 12% | 76%
saidump0% | 34% | 30% | 0% | 35%
proxylib0% | 0% | 7% | 20% | 71%
unittest0% | 0% | 4% | 10% | 84%
saiasiccmp0% | 0% | 13% | 19% | 67%
saisdkdump0% | 0% | 84% | 0% | 15%
ROOT0% | 0% | 19% | 20% | 59%
pyext0% | 0% | 0% | 28% | 71%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
517 142 4
344 102 2
239 99 4
211 85 4
152 81 2
156 80 2
210 79 3
143 77 1
269 75 4
134 74 2
440 72 5
125 70 3
128 70 4
190 51 3
209 51 0
248 42 5
133 38 2
137 35 1
201 35 0
151 33 1
174 30 4
144 30 2
263 29 4
225 28 3
132 28 5
167 28 0
102 28 1
95 27 2
131 27 3
149 26 2
216 26 4
184 25 3
115 25 1
102 24 2
124 24 2
118 23 2
152 23 1
86 23 3
128 22 2
55 22 1
73 22 2
172 22 1
120 21 1
52 20 5
115 20 3
44 20 0
79 19 3
91 19 1
59 19 2
131 19 4