aws-samples / ipc-h264-hls-c-sdk
Unit Size

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

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 50 units with 1,346 lines of code in units (63.1% of code).
    • 3 very long units (439 lines of code)
    • 4 long units (254 lines of code)
    • 13 medium size units (420 lines of code)
    • 9 small units (119 lines of code)
    • 21 very small units (114 lines of code)
32% | 18% | 31% | 8% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c32% | 18% | 31% | 8% | 8%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT32% | 18% | 31% | 8% | 8%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
int32_t S3_HLS_Client_Upload_Buffer()
in S3_HLS_S3_Put_Client.c
167 30 6
150 32 2
122 31 4
91 19 2
61 5 3
int32_t S3_HLS_Client_Set_Tag()
in S3_HLS_S3_Put_Client.c
51 11 2
51 11 1
47 7 5
int32_t S3_HLS_Flush_Buffer()
in S3_HLS_Buffer_Mgr.c
40 8 1
39 7 6
38 7 2
static size_t S3_HLS_Upload_Data()
in S3_HLS_S3_Put_Client.c
37 14 4
36 8 0
29 9 1
28 6 1
int32_t S3_HLS_Put_To_Buffer()
in S3_HLS_Buffer_Mgr.c
28 7 3
26 10 1
26 6 1
int32_t S3_HLS_Clear_Buffer()
in S3_HLS_Buffer_Mgr.c
24 10 2
int32_t S3_HLS_Client_Finalize()
in S3_HLS_S3_Put_Client.c
22 10 1