awslabs / aws-c-sdkutils
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 40 units with 687 lines of code in units (54.2% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (236 lines of code)
    • 9 medium size units (290 lines of code)
    • 3 small units (45 lines of code)
    • 24 very small units (116 lines of code)
0% | 34% | 42% | 6% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 34% | 42% | 6% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source0% | 34% | 42% | 6% | 16%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
71 12 2
61 11 2
53 14 5
static bool s_parse_property()
in source/aws_profile.c
51 7 2
49 10 2
42 11 2
34 6 4
31 6 2
int aws_resource_name_init_from_cur()
in source/resource_name.c
29 10 2
static int s_profile_merge()
in source/aws_profile.c
28 7 2
28 7 2
25 9 2
24 6 4
static bool s_parse_by_token()
in source/aws_profile.c
17 5 3
16 5 1
static bool s_is_whitespace()
in source/aws_profile.c
12 5 1
static void s_log_parse_context()
in source/aws_profile.c
10 4 2
int aws_resource_name_length()
in source/resource_name.c
10 1 2
static bool s_is_identifier()
in source/aws_profile.c
9 9 1
9 2 1