alibaba / PhotonLibOS
Unit Size

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

Intro
Learn more...
Unit Size Overall
<1% | 4% | 17% | 21% | 55%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp<1% | 5% | 28% | 26% | 38%
h0% | 4% | 8% | 17% | 68%
py0% | 0% | 0% | 35% | 64%
js0% | 0% | 0% | 43% | 56%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
io5% | 3% | 35% | 27% | 27%
common0% | 4% | 17% | 27% | 51%
fs0% | 8% | 22% | 17% | 52%
net0% | 7% | 21% | 21% | 49%
include0% | 3% | 5% | 11% | 79%
rpc0% | 8% | 28% | 25% | 37%
thread0% | 0% | 15% | 28% | 55%
ROOT0% | 0% | 68% | 0% | 31%
ecosystem0% | 0% | 10% | 19% | 70%
tools0% | 0% | 0% | 35% | 64%
doc0% | 0% | 0% | 43% | 56%
Alternative Visuals
Longest Units
Top 50 longest units
Unit# linesMcCabe index# params
103 27 1
97 8 1
97 8 1
92 19 1
77 29 3
72 14 2
72 1 2
72 10 3
72 18 4
71 20 2
69 22 4
69 9 3
68 2 2
63 3 0
63 3 0
60 12 1
59 8 2
59 8 2
59 25 1
56 10 4
55 23 2
54 20 2
54 12 3
51 9 1
50 3 2
49 11 3
48 12 1
48 8 1
46 21 3
46 11 1
45 15 1
45 1 0
45 11 0
45 7 1
45 1 0
44 11 3
44 15 1
44 18 1
43 9 3
43 8 1
42 12 1
42 9 0
41 10 3
41 4 1
40 7 1
40 8 4
40 12 3
40 9 1
40 7 4
39 2 2