aws-samples / amazon-cloudwatch-prometheus-metrics-sample
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 21 files with 1,169 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (511 lines of code)
    • 1 medium size files (307 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 19 very small files (351 lines of code)
0% | 43% | 26% | 0% | 30%
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
yaml0% | 91% | 0% | 0% | 8%
yml0% | 0% | 100% | 0% | 0%
cs0% | 0% | 0% | 0% | 100%
cshtml0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
PrometheusDemo/kubernetes0% | 91% | 0% | 0% | 8%
PrometheusDemo/ecs0% | 0% | 100% | 0% | 0%
PrometheusDemo0% | 0% | 0% | 0% | 100%
PrometheusDemo/Views/Shared0% | 0% | 0% | 0% | 100%
PrometheusDemo/Controllers0% | 0% | 0% | 0% | 100%
PrometheusDemo/wwwroot/css0% | 0% | 0% | 0% | 100%
PrometheusDemo/Views/Products0% | 0% | 0% | 0% | 100%
PrometheusDemo/Views/Home0% | 0% | 0% | 0% | 100%
PrometheusDemo/Models0% | 0% | 0% | 0% | 100%
PrometheusDemo/Views0% | 0% | 0% | 0% | 100%
PrometheusDemo/wwwroot/js0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
prometheus-eks.yaml
in PrometheusDemo/kubernetes
511 -
ecs-cwagent-config.yml
in PrometheusDemo/ecs
307 -
site.css
in PrometheusDemo/wwwroot/css
54 -
Startup.cs
in PrometheusDemo
50 3
cshtml
_Layout.cshtml
in PrometheusDemo/Views/Shared
47 -
HomeController.cs
in PrometheusDemo/Controllers
41 4
deployment.yaml
in PrometheusDemo/kubernetes
29 -
Program.cs
in PrometheusDemo
23 2
cshtml
Error.cshtml
in PrometheusDemo/Views/Shared
22 -
cshtml
Index.cshtml
in PrometheusDemo/Views/Products
17 -
ProductsController.cs
in PrometheusDemo/Controllers
16 1
service.yaml
in PrometheusDemo/kubernetes
12 -
ErrorViewModel.cs
in PrometheusDemo/Models
9 -
ingress.yaml
in PrometheusDemo/kubernetes
8 -
cshtml
Index.cshtml
in PrometheusDemo/Views/Home
8 -
cshtml
Privacy.cshtml
in PrometheusDemo/Views/Home
5 -
cshtml
_ViewImports.cshtml
in PrometheusDemo/Views
3 -
cshtml
_ViewStart.cshtml
in PrometheusDemo/Views
3 -
cshtml
_ValidationScriptsPartial.cshtml
in PrometheusDemo/Views/Shared
2 -
site.js
in PrometheusDemo/wwwroot/js
1 -
cshtml
CallAPI.cshtml
in PrometheusDemo/Views/Home
1 -
Files With Most Units (Top 4)
File# lines# units
HomeController.cs
in PrometheusDemo/Controllers
41 4
Startup.cs
in PrometheusDemo
50 3
Program.cs
in PrometheusDemo
23 2
ProductsController.cs
in PrometheusDemo/Controllers
16 1
Files With Long Lines (Top 4)

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

File# lines# units# long lines
ecs-cwagent-config.yml
in PrometheusDemo/ecs
307 - 7
prometheus-eks.yaml
in PrometheusDemo/kubernetes
511 - 3
cshtml
Error.cshtml
in PrometheusDemo/Views/Shared
22 - 2
cshtml
_Layout.cshtml
in PrometheusDemo/Views/Shared
47 - 2