aws-robotics / cloudwatch-common
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 71 files with 4,070 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 4 medium size files (1,164 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (741 lines of code)
    • 61 very small files (2,165 lines of code)
0% | 0% | 28% | 18% | 53%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cpp0% | 0% | 56% | 0% | 43%
h0% | 0% | 11% | 34% | 53%
hpp0% | 0% | 0% | 0% | 100%
cmake0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cloudwatch_logs_common/src0% | 0% | 68% | 0% | 31%
file_management/src0% | 0% | 100% | 0% | 0%
dataflow_lite/include0% | 0% | 22% | 20% | 57%
file_management/include0% | 0% | 0% | 75% | 24%
cloudwatch_metrics_common/include0% | 0% | 0% | 32% | 67%
cloudwatch_metrics_common/src0% | 0% | 0% | 0% | 100%
cloudwatch_logs_common/include0% | 0% | 0% | 0% | 100%
dataflow_lite/src0% | 0% | 0% | 0% | 100%
cloudwatch_logs_common0% | 0% | 0% | 0% | 100%
dataflow_lite0% | 0% | 0% | 0% | 100%
cloudwatch_metrics_common0% | 0% | 0% | 0% | 100%
file_management0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
file_manager_strategy.cpp
in file_management/src/file_upload
403 31
cloudwatch_logs_facade.cpp
in cloudwatch_logs_common/src/utils
276 8
observed_queue.h
in dataflow_lite/include/dataflow_lite/dataflow
251 29
log_publisher.cpp
in cloudwatch_logs_common/src
234 11
file_manager_strategy.h
in file_management/include/file_management/file_upload
142 5
file_manager.h
in file_management/include/file_management/file_upload
136 8
file_upload_streamer.h
in file_management/include/file_management/file_upload
130 10
cloudwatch_service.h
in dataflow_lite/include/dataflow_lite/cloudwatch
116 11
service.h
in dataflow_lite/include/dataflow_lite/utils
112 15
metric_object.h
in cloudwatch_metrics_common/include/cloudwatch_metrics_common/utils
105 1
data_batcher.h
in dataflow_lite/include/dataflow_lite/utils
99 13
log_batcher.cpp
in cloudwatch_logs_common/src
94 4
metric_batcher.cpp
in cloudwatch_metrics_common/src
93 4
metric_serialization.cpp
in cloudwatch_metrics_common/src/utils
90 2
publisher.h
in dataflow_lite/include/dataflow_lite/utils
88 9
status_monitor.h
in dataflow_lite/include/dataflow_lite/dataflow
82 5
log_file_manager.cpp
in cloudwatch_logs_common/src/utils
80 2
queue_monitor.h
in dataflow_lite/include/dataflow_lite/dataflow
75 4
cloudwatch_metrics_facade.cpp
in cloudwatch_metrics_common/src/utils
74 2
file_upload_task.h
in file_management/include/file_management/file_upload
70 4
task.h
in dataflow_lite/include/dataflow_lite/task
65 5
metric_file_manager.cpp
in cloudwatch_metrics_common/src/utils
62 2
observable_object.h
in dataflow_lite/include/dataflow_lite/utils
61 7
log_service_factory.cpp
in cloudwatch_logs_common/src
58 1
metric_service_factory.cpp
in cloudwatch_metrics_common/src
56 1
log_publisher.h
in cloudwatch_logs_common/include/cloudwatch_logs_common
55 -
dataflow.h
in dataflow_lite/include/dataflow_lite/dataflow
54 -
status_monitor.cpp
in dataflow_lite/src/dataflow
53 7
metric_publisher.cpp
in cloudwatch_metrics_common/src
50 3
log_service.h
in cloudwatch_logs_common/include/cloudwatch_logs_common
42 2
cloudwatch_logs_facade.h
in cloudwatch_logs_common/include/cloudwatch_logs_common/utils
41 -
pipeline.h
in dataflow_lite/include/dataflow_lite/dataflow
40 1
metric_service.hpp
in cloudwatch_metrics_common/include/cloudwatch_metrics_common
37 2
log_file_manager.h
in cloudwatch_logs_common/include/cloudwatch_logs_common/utils
35 1
log_batcher.h
in cloudwatch_logs_common/include/cloudwatch_logs_common
32 -
cloudwatch_metrics_facade.hpp
in cloudwatch_metrics_common/include/cloudwatch_metrics_common/utils
32 -
file_manager_options.h
in file_management/include/file_management
32 -
metric_batcher.h
in cloudwatch_metrics_common/include/cloudwatch_metrics_common
31 -
waiter.h
in dataflow_lite/include/dataflow_lite/utils
28 4
metric_file_manager.hpp
in cloudwatch_metrics_common/include/cloudwatch_metrics_common/utils
28 1
metric_publisher.hpp
in cloudwatch_metrics_common/include/cloudwatch_metrics_common
28 -
file_management_factory.h
in file_management/include/file_management/file_upload
27 -
ros_cloudwatch_logs_errors.h
in cloudwatch_logs_common/include/cloudwatch_logs_common/definitions
24 -
priority_options.h
in dataflow_lite/include/dataflow_lite/dataflow
24 1
ros_cloudwatch_logs_errors.h
in cloudwatch_logs_common/include/cloudwatch_logs_common
23 -
log_service_factory.h
in cloudwatch_logs_common/include/cloudwatch_logs_common
23 -
cloudwatch_options.h
in cloudwatch_metrics_common/include/cloudwatch_metrics_common
23 -
metric_service_factory.hpp
in cloudwatch_metrics_common/include/cloudwatch_metrics_common
21 -
cloudwatch_options.h
in cloudwatch_logs_common/include/cloudwatch_logs_common
19 -
sink.h
in dataflow_lite/include/dataflow_lite/dataflow
19 -
Files With Most Units (Top 20)
File# lines# units
file_manager_strategy.cpp
in file_management/src/file_upload
403 31
observed_queue.h
in dataflow_lite/include/dataflow_lite/dataflow
251 29
service.h
in dataflow_lite/include/dataflow_lite/utils
112 15
data_batcher.h
in dataflow_lite/include/dataflow_lite/utils
99 13
log_publisher.cpp
in cloudwatch_logs_common/src
234 11
cloudwatch_service.h
in dataflow_lite/include/dataflow_lite/cloudwatch
116 11
file_upload_streamer.h
in file_management/include/file_management/file_upload
130 10
publisher.h
in dataflow_lite/include/dataflow_lite/utils
88 9
cloudwatch_logs_facade.cpp
in cloudwatch_logs_common/src/utils
276 8
file_manager.h
in file_management/include/file_management/file_upload
136 8
status_monitor.cpp
in dataflow_lite/src/dataflow
53 7
observable_object.h
in dataflow_lite/include/dataflow_lite/utils
61 7
task.h
in dataflow_lite/include/dataflow_lite/task
65 5
status_monitor.h
in dataflow_lite/include/dataflow_lite/dataflow
82 5
file_manager_strategy.h
in file_management/include/file_management/file_upload
142 5
log_batcher.cpp
in cloudwatch_logs_common/src
94 4
waiter.h
in dataflow_lite/include/dataflow_lite/utils
28 4
queue_monitor.h
in dataflow_lite/include/dataflow_lite/dataflow
75 4
metric_batcher.cpp
in cloudwatch_metrics_common/src
93 4
file_upload_task.h
in file_management/include/file_management/file_upload
70 4
Files With Long Lines (Top 14)

There are 14 files with lines longer than 120 characters. In total, there are 23 long lines.

File# lines# units# long lines
metric_service_factory.cpp
in cloudwatch_metrics_common/src
56 1 5
log_batcher.cpp
in cloudwatch_logs_common/src
94 4 3
metric_batcher.cpp
in cloudwatch_metrics_common/src
93 4 3
log_service_factory.cpp
in cloudwatch_logs_common/src
58 1 2
log_publisher.cpp
in cloudwatch_logs_common/src
234 11 1
cloudwatch_logs_facade.cpp
in cloudwatch_logs_common/src/utils
276 8 1
log_publisher.h
in cloudwatch_logs_common/include/cloudwatch_logs_common
55 - 1
data_batcher.h
in dataflow_lite/include/dataflow_lite/utils
99 13 1
metric_publisher.cpp
in cloudwatch_metrics_common/src
50 3 1
metric_service.hpp
in cloudwatch_metrics_common/include/cloudwatch_metrics_common
37 2 1
metric_batcher.h
in cloudwatch_metrics_common/include/cloudwatch_metrics_common
31 - 1
metric_publisher.hpp
in cloudwatch_metrics_common/include/cloudwatch_metrics_common
28 - 1
file_manager_options.h
in file_management/include/file_management
32 - 1
file_manager.h
in file_management/include/file_management/file_upload
136 8 1