apache / ambari-metrics
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
0% | 3% | 15% | 23% | 57%
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
js0% | 38% | 10% | 17% | 33%
java0% | 1% | 13% | 25% | 59%
py0% | 1% | 16% | 24% | 57%
c0% | 0% | 45% | 0% | 54%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ambari-metrics-grafana0% | 35% | 10% | 16% | 38%
ambari-metrics-timelineservice0% | <1% | 13% | 26% | 59%
ambari-metrics-hadoop-sink0% | 24% | 43% | 4% | 28%
ambari-metrics-host-monitoring0% | 1% | 19% | 22% | 56%
ambari-metrics-common0% | 0% | 15% | 23% | 60%
ambari-metrics-kafka-sink0% | 0% | 16% | 9% | 73%
ambari-metrics-storm-sink0% | 0% | 0% | 45% | 54%
ambari-metrics-flume-sink0% | 0% | 0% | 44% | 55%
ambari-metrics-host-aggregator0% | 0% | 0% | 10% | 89%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
255 33 1
85 31 1
85 28 4
89 27 5
86 26 1
87 25 2
121 25 2
64 20 4
43 20 1
58 20 0
76 20 2
67 19 1
39 19 3
52 19 2
57 18 2
69 18 0
80 18 0
49 18 5
94 17 1
39 17 1
50 17 2
87 17 2
44 17 1
59 16 11
37 16 1
39 16 1
46 16 2
81 15 1
72 15 1
73 15 2
39 15 3
40 15 2
54 14 3
71 14 2
73 14 2
41 14 0
26 14 1
61 14 1
24 14 1
29 14 1
41 13 3
51 13 2
40 13 2
20 13 1
32 13 1
61 13 1
48 12 2
43 12 1
28 12 6
23 12 1