microsoft / OMS-Agent-for-Linux
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 136 files with 18,071 lines of code.
    • 0 very long files (0 lines of code)
    • 8 long files (5,668 lines of code)
    • 17 medium size files (5,173 lines of codeclsfd_ftr_w_mp_ins)
    • 21 small files (2,855 lines of code)
    • 90 very small files (4,375 lines of code)
0% | 31% | 28% | 15% | 24%
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
rb0% | 25% | 31% | 15% | 27%
py0% | 29% | 28% | 20% | 21%
cpp0% | 100% | 0% | 0% | 0%
ps10% | 100% | 0% | 0% | 0%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/code/plugins0% | 29% | 29% | 14% | 25%
source/code/troubleshooter/modules/log_collector0% | 67% | 32% | 0% | 0%
tools/LogCollector/source0% | 67% | 32% | 0% | 0%
tools/OMIcheck0% | 100% | 0% | 0% | 0%
source/code/troubleshooter/modules0% | 0% | 52% | 40% | 7%
source/code/troubleshooter/modules/install0% | 0% | 41% | 24% | 34%
source/code/troubleshooter/modules/syslog_tst0% | 0% | 0% | 78% | 21%
source/code/troubleshooter/modules/heartbeat0% | 0% | 0% | 61% | 38%
source/code/troubleshooter/modules/connect0% | 0% | 0% | 53% | 46%
source/code/troubleshooter/modules/high_cpu_mem0% | 0% | 0% | 0% | 100%
source/code/troubleshooter/modules/custom_logs0% | 0% | 0% | 0% | 100%
installer/scripts0% | 0% | 0% | 0% | 100%
source/ext/patches/fluentd0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
npmd_config_lib.rb
in source/code/plugins
977 33
oms_common.rb
in source/code/plugins
969 32
in_npmd_server.rb
in source/code/plugins
704 35
omslinux_agentlog.py
in source/code/troubleshooter/modules/log_collector
653 31
omslinux_agentlog.py
in tools/LogCollector/source
653 31
omi_interface.cpp
in source/code/plugins
635 -
OMIcheck.ps1
in tools/OMIcheck
571 -
agent_maintenance_script.rb
in source/code/plugins
506 19
out_oms_changetracking_file.rb
in source/code/plugins
476 13
agent_telemetry_script.rb
in source/code/plugins
452 14
tailfilereader.rb
in source/code/plugins
386 35
oms_configuration.rb
in source/code/plugins
342 13
VMInsightsDataCollector.rb
in source/code/plugins
331 30
mysql_workload_lib.rb
in source/code/plugins
326 13
update_mgmt_health_check.py
in source/code/troubleshooter/modules/log_collector
320 21
update_mgmt_health_check.py
in tools/LogCollector/source
320 21
changetracking_lib.rb
in source/code/plugins
296 23
out_oms_blob.rb
in source/code/plugins
287 8
VMInsightsEngine.rb
in source/code/plugins
275 28
patch_management_lib.rb
in source/code/plugins
253 14
collectmcafeeinfo.rb
in source/code/plugins
240 3
statsd_lib.rb
in source/code/plugins
233 2
helpers.py
in source/code/troubleshooter/modules
218 11
errors.py
in source/code/troubleshooter/modules
212 6
check_files.py
in source/code/troubleshooter/modules/install
206 9
main.py
in source/code/troubleshooter/modules
192 5
wlm_formatter.rb
in source/code/plugins
174 14
out_oms.rb
in source/code/plugins
163 19
out_oms_api.rb
in source/code/plugins
158 8
agent_topology_request_script.rb
in source/code/plugins
150 5
scom_common.rb
in source/code/plugins
150 15
oms_omi_lib.rb
in source/code/plugins
148 6
security_baseline_lib.rb
in source/code/plugins
142 2
heartbeat.py
in source/code/troubleshooter/modules/heartbeat
139 6
in_wlm_discovery.rb
in source/code/plugins
138 5
errors_tsg.py
in source/code/troubleshooter/modules
134 6
mongostat_lib.rb
in source/code/plugins
130 4
auditlog_lib.rb
in source/code/plugins
128 10
install.py
in source/code/troubleshooter/modules/install
124 4
check_conf.py
in source/code/troubleshooter/modules/syslog_tst
121 4
oms_diag_lib.rb
in source/code/plugins
118 7
auditd_plugin_lib.rb
in source/code/plugins
115 5
in_sudo_tail.rb
in source/code/plugins
114 8
check_endpts.py
in source/code/troubleshooter/modules/connect
110 4
check_rsysng.py
in source/code/troubleshooter/modules/syslog_tst
104 6
in_vminsights.rb
in source/code/plugins
103 15
in_dsc_monitor.rb
in source/code/plugins
100 6
out_oms_diag.rb
in source/code/plugins
99 8
in_auoms.rb
in source/code/plugins
98 11
scom_configuration.rb
in source/code/plugins
95 8
Files With Most Units (Top 20)
File# lines# units
in_npmd_server.rb
in source/code/plugins
704 35
tailfilereader.rb
in source/code/plugins
386 35
npmd_config_lib.rb
in source/code/plugins
977 33
oms_common.rb
in source/code/plugins
969 32
omslinux_agentlog.py
in source/code/troubleshooter/modules/log_collector
653 31
omslinux_agentlog.py
in tools/LogCollector/source
653 31
VMInsightsDataCollector.rb
in source/code/plugins
331 30
VMInsightsEngine.rb
in source/code/plugins
275 28
changetracking_lib.rb
in source/code/plugins
296 23
update_mgmt_health_check.py
in source/code/troubleshooter/modules/log_collector
320 21
update_mgmt_health_check.py
in tools/LogCollector/source
320 21
agent_maintenance_script.rb
in source/code/plugins
506 19
out_oms.rb
in source/code/plugins
163 19
in_vminsights.rb
in source/code/plugins
103 15
scom_common.rb
in source/code/plugins
150 15
agent_telemetry_script.rb
in source/code/plugins
452 14
patch_management_lib.rb
in source/code/plugins
253 14
wlm_formatter.rb
in source/code/plugins
174 14
mysql_workload_lib.rb
in source/code/plugins
326 13
oms_configuration.rb
in source/code/plugins
342 13
Files With Long Lines (Top 20)

There are 45 files with lines longer than 120 characters. In total, there are 273 long lines.

File# lines# units# long lines
update_mgmt_health_check.py
in source/code/troubleshooter/modules/log_collector
320 21 38
update_mgmt_health_check.py
in tools/LogCollector/source
320 21 38
OMIcheck.ps1
in tools/OMIcheck
571 - 30
npmd_config_lib.rb
in source/code/plugins
977 33 29
omslinux_agentlog.py
in source/code/troubleshooter/modules/log_collector
653 31 13
omslinux_agentlog.py
in tools/LogCollector/source
653 31 13
oms_configuration.rb
in source/code/plugins
342 13 11
errors.py
in source/code/troubleshooter/modules
212 6 11
VMInsightsEngine.rb
in source/code/plugins
275 28 9
collectmcafeeinfo.rb
in source/code/plugins
240 3 8
mysql_workload_lib.rb
in source/code/plugins
326 13 7
out_oms_changetracking_file.rb
in source/code/plugins
476 13 6
changetracking_lib.rb
in source/code/plugins
296 23 5
in_npmd_server.rb
in source/code/plugins
704 35 5
agent_telemetry_script.rb
in source/code/plugins
452 14 4
parser_vmware_logs.rb
in source/code/plugins
78 2 4
patch_management_lib.rb
in source/code/plugins
253 14 4
hdinsightmanifestreader.rb
in installer/scripts
8 - 3
agent_topology_request_script.rb
in source/code/plugins
150 5 3
operation_lib.rb
in source/code/plugins
83 7 3