aws-samples / aws-gamelift-and-serverless-backend-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 48 files with 6,028 lines of code.
    • 1 very long files (1,331 lines of code)
    • 1 long files (667 lines of code)
    • 6 medium size files (1,571 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,279 lines of code)
    • 31 very small files (1,180 lines of code)
22% | 11% | 26% | 21% | 19%
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
unity100% | 0% | 0% | 0% | 0%
asset0% | 41% | 32% | 0% | 26%
cs0% | 0% | 44% | 39% | 16%
prefab0% | 0% | 100% | 0% | 0%
yaml0% | 0% | 0% | 100% | 0%
cpp0% | 0% | 0% | 100% | 0%
mat0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
ps10% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
GameLiftExampleUnityProject/Assets/Scenes100% | 0% | 0% | 0% | 0%
GameLiftExampleUnityProject/ProjectSettings0% | 41% | 32% | 0% | 26%
GameLiftExampleUnityProject/Assets/PrefabsAndMaterials0% | 0% | 65% | 0% | 35%
GameLiftExampleUnityProject/Assets/Scripts/Server0% | 0% | 71% | 19% | 9%
GameLiftExampleUnityProject/Assets/Scripts/Client0% | 0% | 34% | 52% | 13%
FleetDeployment0% | 0% | 0% | 80% | 19%
CppServerAndClient/Server0% | 0% | 0% | 91% | 8%
GameServiceAPI0% | 0% | 0% | 93% | 6%
CppServerAndClient/Client0% | 0% | 0% | 94% | 5%
GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared0% | 0% | 0% | 61% | 39%
GameServiceAPI/gameservice0% | 0% | 0% | 0% | 100%
GameLiftExampleUnityProject/Assets/Scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 48)
File# lines# units
GameWorld.unity
in GameLiftExampleUnityProject/Assets/Scenes
1331 -
asset
ProjectSettings.asset
in GameLiftExampleUnityProject/ProjectSettings
667 -
Server.cs
in GameLiftExampleUnityProject/Assets/Scripts/Server
413 23
asset
InputManager.asset
in GameLiftExampleUnityProject/ProjectSettings
295 -
asset
QualitySettings.asset
in GameLiftExampleUnityProject/ProjectSettings
231 -
SimpleCharacter.prefab
in GameLiftExampleUnityProject/Assets/PrefabsAndMaterials
221 -
EnemyCharacter.prefab
in GameLiftExampleUnityProject/Assets/PrefabsAndMaterials
208 -
NetworkClient.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
203 15
Client.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
191 9
Server.cpp
in CppServerAndClient/Server
171 9
template.yaml
in GameServiceAPI
166 -
Client.cpp
in CppServerAndClient/Client
147 3
gamelift.yaml
in FleetDeployment
146 -
NetworkPlayer.cs
in GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared
122 13
MatchmakingClient.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
114 4
GameLift.cs
in GameLiftExampleUnityProject/Assets/Scripts/Server
111 7
prerequirements.yaml
in FleetDeployment
111 -
requestmatchmaking.js
in GameServiceAPI/gameservice
96 -
asset
NavMeshAreas.asset
in GameLiftExampleUnityProject/ProjectSettings
91 -
mat
EnemyMaterial.mat
in GameLiftExampleUnityProject/Assets/PrefabsAndMaterials
77 -
mat
PlayerMaterial.mat
in GameLiftExampleUnityProject/Assets/PrefabsAndMaterials
77 -
mat
GroundMaterial.mat
in GameLiftExampleUnityProject/Assets/PrefabsAndMaterials
77 -
asset
GraphicsSettings.asset
in GameLiftExampleUnityProject/ProjectSettings
66 -
requestmatchstatus.js
in GameServiceAPI/gameservice
64 -
SimpleStatsdClient.cs
in GameLiftExampleUnityProject/Assets/Scripts/Server
57 6
asset
Physics2DSettings.asset
in GameLiftExampleUnityProject/ProjectSettings
56 -
SimpleController.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
43 2
asset
TagManager.asset
in GameLiftExampleUnityProject/ProjectSettings
43 -
MessageClasses.cs
in GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared
42 3
processmatchmakingevents.js
in GameServiceAPI/gameservice
38 -
NetworkProtocol.cs
in GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared
36 1
asset
EditorSettings.asset
in GameLiftExampleUnityProject/ProjectSettings
35 -
deployBuildAndUpdateGameLiftResources.ps1
in FleetDeployment
35 -
asset
UnityConnectSettings.asset
in GameLiftExampleUnityProject/ProjectSettings
34 -
asset
DynamicsManager.asset
in GameLiftExampleUnityProject/ProjectSettings
34 -
MatchmakingSerializationClasses.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
33 -
deployPreRequirements.ps1
in FleetDeployment
28 -
asset
AudioManager.asset
in GameLiftExampleUnityProject/ProjectSettings
19 -
Server.h
in CppServerAndClient/Server
15 1
deploy.ps1
in GameServiceAPI
12 -
asset
VFXManager.asset
in GameLiftExampleUnityProject/ProjectSettings
11 -
asset
EditorBuildSettings.asset
in GameLiftExampleUnityProject/ProjectSettings
11 -
UIManager.cs
in GameLiftExampleUnityProject/Assets/Scripts
10 1
asset
XRSettings.asset
in GameLiftExampleUnityProject/ProjectSettings
10 -
asset
TimeManager.asset
in GameLiftExampleUnityProject/ProjectSettings
9 -
Client.h
in CppServerAndClient/Client
9 -
asset
ClusterInputManager.asset
in GameLiftExampleUnityProject/ProjectSettings
6 -
asset
PresetManager.asset
in GameLiftExampleUnityProject/ProjectSettings
6 -
Files With Most Units (Top 14)
File# lines# units
Server.cs
in GameLiftExampleUnityProject/Assets/Scripts/Server
413 23
NetworkClient.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
203 15
NetworkPlayer.cs
in GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared
122 13
Client.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
191 9
Server.cpp
in CppServerAndClient/Server
171 9
GameLift.cs
in GameLiftExampleUnityProject/Assets/Scripts/Server
111 7
SimpleStatsdClient.cs
in GameLiftExampleUnityProject/Assets/Scripts/Server
57 6
MatchmakingClient.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
114 4
MessageClasses.cs
in GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared
42 3
Client.cpp
in CppServerAndClient/Client
147 3
SimpleController.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
43 2
UIManager.cs
in GameLiftExampleUnityProject/Assets/Scripts
10 1
NetworkProtocol.cs
in GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared
36 1
Server.h
in CppServerAndClient/Server
15 1
Files With Long Lines (Top 14)

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

File# lines# units# long lines
Client.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
191 9 4
Server.cs
in GameLiftExampleUnityProject/Assets/Scripts/Server
413 23 4
deployBuildAndUpdateGameLiftResources.ps1
in FleetDeployment
35 - 4
deployPreRequirements.ps1
in FleetDeployment
28 - 4
Client.cpp
in CppServerAndClient/Client
147 3 4
NetworkPlayer.cs
in GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared
122 13 3
deploy.ps1
in GameServiceAPI
12 - 2
MatchmakingClient.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
114 4 2
MessageClasses.cs
in GameLiftExampleUnityProject/Assets/Scripts/NetworkingShared
42 3 2
processmatchmakingevents.js
in GameServiceAPI/gameservice
38 - 1
NetworkClient.cs
in GameLiftExampleUnityProject/Assets/Scripts/Client
203 15 1
asset
Physics2DSettings.asset
in GameLiftExampleUnityProject/ProjectSettings
56 - 1
asset
DynamicsManager.asset
in GameLiftExampleUnityProject/ProjectSettings
34 - 1
gamelift.yaml
in FleetDeployment
146 - 1