aws-robotics / cloudwatchlogs-ros2
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 23 units with 525 lines of code in units (73.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (69 lines of code)
    • 13 medium size units (366 lines of code)
    • 4 small units (58 lines of code)
    • 5 very small units (32 lines of code)
0% | 13% | 69% | 11% | 6%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 14% | 67% | 11% | 6%
py0% | 0% | 100% | 0% | 0%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 14% | 67% | 11% | 6%
launch0% | 0% | 100% | 0% | 0%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
int main()
in cloudwatch_logger/src/main.cpp
69 2 2
Aws::AwsError ReadMinLogVerbosity()
in cloudwatch_logger/src/log_node_param_helper.cpp
43 8 2
def generate_launch_description()
in cloudwatch_logger/launch/cloudwatch_logger.launch.py
36 1 0
void ReadUploaderOptions()
in cloudwatch_logger/src/log_node_param_helper.cpp
35 1 2
void ReadFileManagerStrategyOptions()
in cloudwatch_logger/src/log_node_param_helper.cpp
35 1 2
const std::string LogNode::FormatLogs()
in cloudwatch_logger/src/log_node.cpp
30 6 1
Aws::AwsError ReadSubscribeToRosout()
in cloudwatch_logger/src/log_node_param_helper.cpp
28 3 2
Aws::AwsError ReadPublishFrequency()
in cloudwatch_logger/src/log_node_param_helper.cpp
24 3 2
void ReadOption()
in cloudwatch_logger/src/log_node_param_helper.cpp
24 3 4
Aws::AwsError ReadSubscriberList()
in cloudwatch_logger/src/log_node_param_helper.cpp
23 3 5
Aws::AwsError ReadLogGroup()
in cloudwatch_logger/src/log_node_param_helper.cpp
22 3 2
Aws::AwsError ReadLogStream()
in cloudwatch_logger/src/log_node_param_helper.cpp
22 3 2
void ReadOption()
in cloudwatch_logger/src/log_node_param_helper.cpp
22 3 4
void ReadOption()
in cloudwatch_logger/src/log_node_param_helper.cpp
22 3 4
Aws::AwsError ReadIgnoreNodesSet()
in cloudwatch_logger/src/log_node_param_helper.cpp
20 4 2
void LogNode::RecordLogs()
in cloudwatch_logger/src/log_node.cpp
14 4 1
void ReadCloudWatchOptions()
in cloudwatch_logger/src/log_node_param_helper.cpp
13 1 2
bool LogNode::checkIfOnline()
in cloudwatch_logger/src/log_node.cpp
11 3 2
bool LogNode::start()
in cloudwatch_logger/src/log_node.cpp
9 2 0
bool LogNode::shutdown()
in cloudwatch_logger/src/log_node.cpp
8 2 0