aws / amazon-codeguru-profiler-python-agent
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 48 files with 2,233 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (787 lines of code)
    • 42 very small files (1,446 lines of code)
0% | 0% | 0% | 35% | 64%
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
py0% | 0% | 0% | 35% | 64%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
codeguru_profiler_agent/sdk_reporter0% | 0% | 0% | 99% | <1%
codeguru_profiler_agent0% | 0% | 0% | 23% | 76%
ROOT0% | 0% | 0% | 77% | 22%
codeguru_profiler_agent/reporter0% | 0% | 0% | 90% | 9%
codeguru_profiler_agent/model0% | 0% | 0% | 53% | 46%
codeguru_profiler_agent/agent_metadata0% | 0% | 0% | 0% | 100%
codeguru_profiler_agent/utils0% | 0% | 0% | 0% | 100%
codeguru_profiler_agent/aws_lambda0% | 0% | 0% | 0% | 100%
codeguru_profiler_agent/metrics0% | 0% | 0% | 0% | 100%
codeguru_profiler_agent/file_reporter0% | 0% | 0% | 0% | 100%
Longest Files (Top 48)
File# lines# units
profiler.py
in codeguru_profiler_agent
177 11
profile_encoder.py
in codeguru_profiler_agent/sdk_reporter
151 19
sdk_reporter.py
in codeguru_profiler_agent/sdk_reporter
127 11
release_layer.py
in root
119 10
agent_configuration.py
in codeguru_profiler_agent/reporter
112 16
profile.py
in codeguru_profiler_agent/model
101 15
profiler_builder.py
in codeguru_profiler_agent
98 10
local_aggregator.py
in codeguru_profiler_agent
94 12
aws_lambda.py
in codeguru_profiler_agent/agent_metadata
87 8
execution_state.py
in codeguru_profiler_agent/utils
82 12
profiler_runner.py
in codeguru_profiler_agent
81 12
agent_debug_info.py
in codeguru_profiler_agent/agent_metadata
80 12
profiler_disabler.py
in codeguru_profiler_agent
80 10
agent_metadata.py
in codeguru_profiler_agent/agent_metadata
71 7
__main__.py
in codeguru_profiler_agent
71 3
sampling_utils.py
in codeguru_profiler_agent
66 8
scheduler.py
in codeguru_profiler_agent/utils
57 10
aws_ec2_instance.py
in codeguru_profiler_agent/agent_metadata
52 8
profiler_decorator.py
in codeguru_profiler_agent/aws_lambda
50 7
codeguru_client_builder.py
in codeguru_profiler_agent
50 5
call_graph_node.py
in codeguru_profiler_agent/model
49 7
lambda_handler.py
in codeguru_profiler_agent/aws_lambda
47 6
fleet_info.py
in codeguru_profiler_agent/agent_metadata
42 8
aws_fargate_task.py
in codeguru_profiler_agent/agent_metadata
42 5
sampler.py
in codeguru_profiler_agent
37 4
setup.py
in root
34 2
file_reporter.py
in codeguru_profiler_agent/file_reporter
28 5
memory_counter.py
in codeguru_profiler_agent/model
25 5
with_timer.py
in codeguru_profiler_agent/metrics
23 1
metric.py
in codeguru_profiler_agent/metrics
16 4
timer.py
in codeguru_profiler_agent/metrics
13 4
lambda_context.py
in codeguru_profiler_agent/aws_lambda
12 2
reporter.py
in codeguru_profiler_agent/reporter
11 3
time.py
in codeguru_profiler_agent/utils
11 2
synchronization.py
in codeguru_profiler_agent/utils
9 1
frame.py
in codeguru_profiler_agent/model
7 1
sample.py
in codeguru_profiler_agent/model
6 1
__init__.py
in codeguru_profiler_agent
3 -
log_exception.py
in codeguru_profiler_agent/utils
3 1
__init__.py
in codeguru_profiler_agent/reporter
1 -
__init__.py
in codeguru_profiler_agent/agent_metadata
1 -
__init__.py
in codeguru_profiler_agent/model
1 -
__init__.py
in codeguru_profiler_agent/utils
1 -
__init__.py
in codeguru_profiler_agent/file_reporter
1 -
__init__.py
in codeguru_profiler_agent/aws_lambda
1 -
__init__.py
in codeguru_profiler_agent/metrics
1 -
__init__.py
in codeguru_profiler_agent/sdk_reporter
1 -
in
MANIFEST.in
in root
1 -
Files With Most Units (Top 20)
File# lines# units
profile_encoder.py
in codeguru_profiler_agent/sdk_reporter
151 19
agent_configuration.py
in codeguru_profiler_agent/reporter
112 16
profile.py
in codeguru_profiler_agent/model
101 15
agent_debug_info.py
in codeguru_profiler_agent/agent_metadata
80 12
local_aggregator.py
in codeguru_profiler_agent
94 12
execution_state.py
in codeguru_profiler_agent/utils
82 12
profiler_runner.py
in codeguru_profiler_agent
81 12
sdk_reporter.py
in codeguru_profiler_agent/sdk_reporter
127 11
profiler.py
in codeguru_profiler_agent
177 11
profiler_disabler.py
in codeguru_profiler_agent
80 10
scheduler.py
in codeguru_profiler_agent/utils
57 10
profiler_builder.py
in codeguru_profiler_agent
98 10
release_layer.py
in root
119 10
aws_ec2_instance.py
in codeguru_profiler_agent/agent_metadata
52 8
fleet_info.py
in codeguru_profiler_agent/agent_metadata
42 8
aws_lambda.py
in codeguru_profiler_agent/agent_metadata
87 8
sampling_utils.py
in codeguru_profiler_agent
66 8
agent_metadata.py
in codeguru_profiler_agent/agent_metadata
71 7
call_graph_node.py
in codeguru_profiler_agent/model
49 7
profiler_decorator.py
in codeguru_profiler_agent/aws_lambda
50 7
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 11 long lines.

File# lines# units# long lines
profile.py
in codeguru_profiler_agent/model
101 15 3
__main__.py
in codeguru_profiler_agent
71 3 2
profile_encoder.py
in codeguru_profiler_agent/sdk_reporter
151 19 2
local_aggregator.py
in codeguru_profiler_agent
94 12 1
profiler_disabler.py
in codeguru_profiler_agent
80 10 1
scheduler.py
in codeguru_profiler_agent/utils
57 10 1
profiler_builder.py
in codeguru_profiler_agent
98 10 1