twitter / rustcommon
Unit Size

The distribution of size of units (measured in lines of code).

Intro
Learn more...
Unit Size Overall
4% | 2% | 13% | 14% | 64%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
rs4% | 2% | 13% | 14% | 64%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
time31% | 0% | 0% | 4% | 64%
metrics0% | 37% | 0% | 0% | 62%
atomics0% | 0% | 15% | 2% | 82%
streamstats0% | 0% | 74% | 0% | 25%
ratelimiter0% | 0% | 80% | 0% | 19%
waterfall0% | 0% | 60% | 26% | 13%
logger0% | 0% | 13% | 25% | 60%
heatmap0% | 0% | 0% | 97% | 2%
histogram0% | 0% | 0% | 66% | 33%
timer0% | 0% | 0% | 59% | 40%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
117 7 1
61 3 1
33 4 1
32 5 3
32 5 3
31 4 3
31 4 3
29 2 3
29 2 3
27 6 5
24 5 1
22 3 0
22 3 0
20 4 1
19 5 2
19 5 2
19 3 2
17 4 0
16 2 1
15 3 0
15 1 0
14 1 1
14 3 2
13 2 1
13 3 1
12 4 2
12 1 5
12 1 5
12 2 1
12 2 2
12 2 2
12 2 1
12 1 0
11 3 2
11 1 1
11 1 0
11 1 0
10 4 2
10 1 0
10 2 2
10 2 2
10 2 2
10 2 2
10 2 2
10 3 2
10 2 2
10 2 2
10 2 2
10 2 2
10 2 2