GoogleCloudPlatform / sql-server-agent
File Size

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

Intro
Learn more...
File Size Overall
0% | 18% | 42% | 18% | 21%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
go0% | 21% | 41% | 18% | 18%
ps10% | 0% | 68% | 0% | 31%
proto0% | 0% | 0% | 100% | 0%
spec0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
protos0% | 87% | 0% | 12% | 0%
internal0% | 0% | 54% | 23% | 22%
build0% | 0% | 68% | 0% | 31%
ROOT0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
Longest Files (Top 28)
File# lines# units
sqlserveragentconfig.pb.go
in protos/sqlserveragentconfig
779 77
linux_guestcollector.go
in internal/guestcollector
462 13
sqlservermetrics.go
in internal/sqlservermetrics
346 24
rules.go
in internal
257 -
configuration.go
in internal/configuration
253 6
229 -
guestcollector_win.go
in internal/guestcollector
221 4
sqlservermetrics_windows.go
in internal/sqlservermetrics
199 5
utils.go
in internal
162 11
remote.go
in internal/remote
162 9
sqlservermetrics_linux.go
in internal/sqlservermetrics
141 5
proto
sqlserveragentconfig.proto
in protos/sqlserveragentconfig
109 -
flags.go
in internal/flags
92 4
89 -
sqlcollector_v1.go
in internal/sqlcollector
85 4
daemon.go
in internal/daemon
85 7
wlm.go
in internal/wlm
69 6
agentstatus.go
in internal/agentstatus
64 4
62 -
main.go
in cmd
60 1
instancereader.go
in internal/instanceinfo
50 4
activation.go
in internal/activation
47 3
guestcollector.go
in internal/guestcollector
46 2
45 -
secretmanager.go
in internal/secretmanager
37 3
wlm_fake.go
in internal/wlm
31 3
activation_fake.go
in internal/activation
18 2
sqlcollector.go
in internal/sqlcollector
9 -
Files With Most Units (Top 21)
File# lines# units
sqlserveragentconfig.pb.go
in protos/sqlserveragentconfig
779 77
sqlservermetrics.go
in internal/sqlservermetrics
346 24
linux_guestcollector.go
in internal/guestcollector
462 13
utils.go
in internal
162 11
remote.go
in internal/remote
162 9
daemon.go
in internal/daemon
85 7
wlm.go
in internal/wlm
69 6
configuration.go
in internal/configuration
253 6
sqlservermetrics_windows.go
in internal/sqlservermetrics
199 5
sqlservermetrics_linux.go
in internal/sqlservermetrics
141 5
sqlcollector_v1.go
in internal/sqlcollector
85 4
instancereader.go
in internal/instanceinfo
50 4
flags.go
in internal/flags
92 4
agentstatus.go
in internal/agentstatus
64 4
guestcollector_win.go
in internal/guestcollector
221 4
secretmanager.go
in internal/secretmanager
37 3
wlm_fake.go
in internal/wlm
31 3
activation.go
in internal/activation
47 3
activation_fake.go
in internal/activation
18 2
guestcollector.go
in internal/guestcollector
46 2
main.go
in cmd
60 1
Files With Long Lines (Top 18)

There are 18 files with lines longer than 120 characters. In total, there are 100 long lines.

File# lines# units# long lines
sqlserveragentconfig.pb.go
in protos/sqlserveragentconfig
779 77 31
linux_guestcollector.go
in internal/guestcollector
462 13 11
sqlservermetrics.go
in internal/sqlservermetrics
346 24 10
sqlservermetrics_windows.go
in internal/sqlservermetrics
199 5 8
sqlservermetrics_linux.go
in internal/sqlservermetrics
141 5 8
guestcollector_win.go
in internal/guestcollector
221 4 7
main.go
in cmd
60 1 6
wlm.go
in internal/wlm
69 6 3
utils.go
in internal
162 11 3
229 - 2
rules.go
in internal
257 - 2
remote.go
in internal/remote
162 9 2
guestcollector.go
in internal/guestcollector
46 2 2
instancereader.go
in internal/instanceinfo
50 4 1
daemon.go
in internal/daemon
85 7 1
agentstatus.go
in internal/agentstatus
64 4 1
activation_fake.go
in internal/activation
18 2 1
configuration.go
in internal/configuration
253 6 1
Correlations

File Size vs. Commits (all time): 28 points

cmd/main.go x: 6 commits (all time) y: 60 lines of code internal/agentstatus/agentstatus.go x: 9 commits (all time) y: 64 lines of code internal/configuration/configuration.go x: 6 commits (all time) y: 253 lines of code internal/daemon/daemon.go x: 5 commits (all time) y: 85 lines of code internal/guestcollector/guestcollector_win.go x: 7 commits (all time) y: 221 lines of code internal/guestcollector/linux_guestcollector.go x: 15 commits (all time) y: 462 lines of code internal/remote/remote.go x: 5 commits (all time) y: 162 lines of code internal/sqlservermetrics/sqlservermetrics.go x: 4 commits (all time) y: 346 lines of code internal/sqlservermetrics/sqlservermetrics_linux.go x: 3 commits (all time) y: 141 lines of code internal/sqlservermetrics/sqlservermetrics_windows.go x: 3 commits (all time) y: 199 lines of code internal/utils.go x: 9 commits (all time) y: 162 lines of code internal/flags/flags.go x: 1 commits (all time) y: 92 lines of code internal/rules.go x: 4 commits (all time) y: 257 lines of code build/google-cloud-sql-server-agent-uninstall.ps1 x: 2 commits (all time) y: 62 lines of code internal/guestcollector/guestcollector.go x: 4 commits (all time) y: 46 lines of code protos/sqlserveragentconfig/sqlserveragentconfig.pb.go x: 3 commits (all time) y: 779 lines of code protos/sqlserveragentconfig/sqlserveragentconfig.proto x: 3 commits (all time) y: 109 lines of code build/google-cloud-sql-server-agent-install.ps1 x: 2 commits (all time) y: 229 lines of code internal/wlm/wlm.go x: 2 commits (all time) y: 69 lines of code internal/instanceinfo/instancereader.go x: 2 commits (all time) y: 50 lines of code build/google-cloud-sql-server-agent-monitor.ps1 x: 1 commits (all time) y: 45 lines of code internal/activation/activation.go x: 1 commits (all time) y: 47 lines of code internal/activation/activation_fake.go x: 1 commits (all time) y: 18 lines of code internal/secretmanager/secretmanager.go x: 1 commits (all time) y: 37 lines of code internal/sqlcollector/sqlcollector.go x: 1 commits (all time) y: 9 lines of code internal/wlm/wlm_fake.go x: 1 commits (all time) y: 31 lines of code
779.0
lines of code
  min: 9.0
  average: 150.32
  25th percentile: 47.75
  median: 87.0
  75th percentile: 215.5
  max: 779.0
0 15.0
commits (all time)
min: 1.0 | average: 3.82 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 5.0 | max: 15.0

File Size vs. Contributors (all time): 28 points

cmd/main.go x: 2 contributors (all time) y: 60 lines of code internal/agentstatus/agentstatus.go x: 3 contributors (all time) y: 64 lines of code internal/configuration/configuration.go x: 2 contributors (all time) y: 253 lines of code internal/daemon/daemon.go x: 2 contributors (all time) y: 85 lines of code internal/guestcollector/guestcollector_win.go x: 4 contributors (all time) y: 221 lines of code internal/guestcollector/linux_guestcollector.go x: 4 contributors (all time) y: 462 lines of code internal/remote/remote.go x: 2 contributors (all time) y: 162 lines of code internal/sqlservermetrics/sqlservermetrics.go x: 2 contributors (all time) y: 346 lines of code internal/sqlservermetrics/sqlservermetrics_linux.go x: 2 contributors (all time) y: 141 lines of code internal/sqlservermetrics/sqlservermetrics_windows.go x: 2 contributors (all time) y: 199 lines of code internal/flags/flags.go x: 1 contributors (all time) y: 92 lines of code internal/rules.go x: 2 contributors (all time) y: 257 lines of code build/google-cloud-sql-server-agent-uninstall.ps1 x: 2 contributors (all time) y: 62 lines of code internal/guestcollector/guestcollector.go x: 4 contributors (all time) y: 46 lines of code protos/sqlserveragentconfig/sqlserveragentconfig.pb.go x: 2 contributors (all time) y: 779 lines of code protos/sqlserveragentconfig/sqlserveragentconfig.proto x: 2 contributors (all time) y: 109 lines of code build/google-cloud-sql-server-agent-install.ps1 x: 2 contributors (all time) y: 229 lines of code internal/wlm/wlm.go x: 2 contributors (all time) y: 69 lines of code internal/instanceinfo/instancereader.go x: 2 contributors (all time) y: 50 lines of code build/google-cloud-sql-server-agent-monitor.ps1 x: 1 contributors (all time) y: 45 lines of code internal/activation/activation.go x: 1 contributors (all time) y: 47 lines of code internal/activation/activation_fake.go x: 1 contributors (all time) y: 18 lines of code internal/secretmanager/secretmanager.go x: 1 contributors (all time) y: 37 lines of code internal/sqlcollector/sqlcollector.go x: 1 contributors (all time) y: 9 lines of code internal/wlm/wlm_fake.go x: 1 contributors (all time) y: 31 lines of code
779.0
lines of code
  min: 9.0
  average: 150.32
  25th percentile: 47.75
  median: 87.0
  75th percentile: 215.5
  max: 779.0
0 4.0
contributors (all time)
min: 1.0 | average: 1.96 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 4.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 12 points

cmd/main.go x: 1 commits (90d) y: 60 lines of code internal/agentstatus/agentstatus.go x: 1 commits (90d) y: 64 lines of code internal/configuration/configuration.go x: 1 commits (90d) y: 253 lines of code internal/daemon/daemon.go x: 1 commits (90d) y: 85 lines of code internal/guestcollector/guestcollector_win.go x: 1 commits (90d) y: 221 lines of code internal/guestcollector/linux_guestcollector.go x: 1 commits (90d) y: 462 lines of code internal/remote/remote.go x: 1 commits (90d) y: 162 lines of code internal/sqlservermetrics/sqlservermetrics.go x: 1 commits (90d) y: 346 lines of code internal/sqlservermetrics/sqlservermetrics_linux.go x: 1 commits (90d) y: 141 lines of code internal/sqlservermetrics/sqlservermetrics_windows.go x: 1 commits (90d) y: 199 lines of code
462.0
lines of code
  min: 60.0
  average: 186.67
  25th percentile: 85.0
  median: 162.0
  75th percentile: 245.0
  max: 462.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (90 days): 12 points

cmd/main.go x: 1 contributors (90d) y: 60 lines of code internal/agentstatus/agentstatus.go x: 1 contributors (90d) y: 64 lines of code internal/configuration/configuration.go x: 1 contributors (90d) y: 253 lines of code internal/daemon/daemon.go x: 1 contributors (90d) y: 85 lines of code internal/guestcollector/guestcollector_win.go x: 1 contributors (90d) y: 221 lines of code internal/guestcollector/linux_guestcollector.go x: 1 contributors (90d) y: 462 lines of code internal/remote/remote.go x: 1 contributors (90d) y: 162 lines of code internal/sqlservermetrics/sqlservermetrics.go x: 1 contributors (90d) y: 346 lines of code internal/sqlservermetrics/sqlservermetrics_linux.go x: 1 contributors (90d) y: 141 lines of code internal/sqlservermetrics/sqlservermetrics_windows.go x: 1 contributors (90d) y: 199 lines of code
462.0
lines of code
  min: 60.0
  average: 186.67
  25th percentile: 85.0
  median: 162.0
  75th percentile: 245.0
  max: 462.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0