aws-samples / aws-gamelift-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 154 files with 13,313 lines of code.
    • 1 very long files (1,104 lines of code)
    • 2 long files (1,168 lines of code)
    • 15 medium size files (4,016 lines of codeclsfd_ftr_w_mp_ins)
    • 21 small files (2,899 lines of code)
    • 115 very small files (4,126 lines of code)
8% | 8% | 30% | 21% | 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
css31% | 14% | 37% | 0% | 16%
cpp0% | 25% | 19% | 25% | 29%
h0% | 0% | 36% | 30% | 32%
vcxproj0% | 0% | 100% | 0% | 0%
html0% | 0% | 0% | 34% | 65%
TXT0% | 0% | 0% | 63% | 36%
c0% | 0% | 0% | 100% | 0%
filters0% | 0% | 0% | 64% | 35%
hpp0% | 0% | 0% | 100% | 0%
py0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
hugo/hugo-theme-learn27% | 12% | 26% | 6% | 27%
GomokuServer/GomokuServer0% | 9% | 32% | 28% | 29%
GomokuClient/GomokuClient0% | 0% | 51% | 16% | 31%
hugo/static0% | 0% | 74% | 0% | 25%
Shared0% | 0% | 0% | 81% | 18%
Lambda0% | 0% | 0% | 0% | 100%
FleetIQ0% | 0% | 0% | 0% | 100%
web0% | 0% | 0% | 0% | 100%
hugo/layouts0% | 0% | 0% | 0% | 100%
hugo0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
theme.css
in hugo/hugo-theme-learn/static/css
1104 -
json11.cpp
in GomokuServer/GomokuServer
646 55
nucleus.css
in hugo/hugo-theme-learn/static/css
522 -
GetInstanceCertificateResult.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
344 20
mermaid.forest.css
in hugo/hugo-theme-learn/static/mermaid
340 -
GameSession.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
324 43
GameLiftErrors.h
in GomokuServer/GomokuServer/include/aws/gamelift/common
310 9
PlayerSession.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
290 44
GUIController.cpp
in GomokuClient/GomokuClient
279 19
Player.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
267 16
mermaid.dark.css
in hugo/hugo-theme-learn/static/mermaid
262 -
mermaid.css
in hugo/hugo-theme-learn/static/mermaid
260 -
theme-aws.css
in hugo/static/css
243 -
AttributeValue.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
238 16
vcxproj
GomokuServer.vcxproj
in GomokuServer/GomokuServer
237 -
hugo-theme.css
in hugo/hugo-theme-learn/static/css
212 -
vcxproj
GomokuClient.vcxproj
in GomokuClient/GomokuClient
209 -
GameLiftManager.cpp
in GomokuServer/GomokuServer
201 12
DescribePlayerSessionsRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
196 24
GameSession.cpp
in GomokuServer/GomokuServer
185 10
StartMatchBackfillRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
160 15
NetController.cpp
in GomokuClient/GomokuClient
156 8
Session.cpp
in GomokuServer/GomokuServer
152 9
TXT
LICENSE_AMAZON_GAMELIFT_SDK.TXT
in GomokuServer/GomokuServer/include
150 -
Outcome.h
in GomokuServer/GomokuServer/include/aws/gamelift/common
148 2
ProcessParameters.h
in GomokuServer/GomokuServer/include/aws/gamelift/server
145 12
ini.c
in Shared
145 3
SharedStruct.h
in Shared
143 -
menu.html
in hugo/hugo-theme-learn/layouts/partials
140 -
filters
GomokuServer.vcxproj.filters
in GomokuServer/GomokuServer
138 -
CircularBuffer.cpp
in Shared
137 4
json11.hpp
in GomokuServer/GomokuServer
129 10
StopMatchBackfillRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
124 12
DescribePlayerSessionsResult.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
119 7
GameLiftServerState.h
in GomokuServer/GomokuServer/include/aws/gamelift/internal
109 6
DescribePlayerSessionsMapper.h
in GomokuServer/GomokuServer/include/aws/gamelift/internal/modelmapper
108 3
GameProperty.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
107 8
header.html
in hugo/hugo-theme-learn/layouts/partials
104 -
CircularBuffer.h
in Shared
104 9
AttributeValueMapper.h
in GomokuServer/GomokuServer/include/aws/gamelift/internal/modelmapper
100 2
UpdateGameSession.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
99 3
MatchController.cpp
in GomokuClient/GomokuClient
97 5
IocpManager.cpp
in GomokuServer/GomokuServer
96 5
PlayerSessionStatus.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
91 3
theme-green.css
in hugo/hugo-theme-learn/static/css
90 -
theme-blue.css
in hugo/hugo-theme-learn/static/css
90 -
theme-red.css
in hugo/hugo-theme-learn/static/css
90 -
children.html
in hugo/hugo-theme-learn/layouts/shortcodes
86 -
TXT
NOTICE_C++_AMAZON_GAMELIFT_SDK.TXT
in GomokuServer/GomokuServer/include
85 -
theme-mine.css
in hugo/static/css
84 -
Files With Most Units (Top 20)
File# lines# units
json11.cpp
in GomokuServer/GomokuServer
646 55
PlayerSession.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
290 44
GameSession.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
324 43
DescribePlayerSessionsRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
196 24
GetInstanceCertificateResult.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
344 20
GUIController.cpp
in GomokuClient/GomokuClient
279 19
Player.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
267 16
AttributeValue.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
238 16
StartMatchBackfillRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
160 15
GameLiftManager.cpp
in GomokuServer/GomokuServer
201 12
ProcessParameters.h
in GomokuServer/GomokuServer/include/aws/gamelift/server
145 12
StopMatchBackfillRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
124 12
json11.hpp
in GomokuServer/GomokuServer
129 10
GameSession.cpp
in GomokuServer/GomokuServer
185 10
Session.cpp
in GomokuServer/GomokuServer
152 9
GameLiftErrors.h
in GomokuServer/GomokuServer/include/aws/gamelift/common
310 9
CircularBuffer.h
in Shared
104 9
GameProperty.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
107 8
NetController.cpp
in GomokuClient/GomokuClient
156 8
Session.h
in GomokuServer/GomokuServer
37 7
Files With Long Lines (Top 20)

There are 60 files with lines longer than 120 characters. In total, there are 281 long lines.

File# lines# units# long lines
vcxproj
GomokuServer.vcxproj
in GomokuServer/GomokuServer
237 - 27
vcxproj
GomokuClient.vcxproj
in GomokuClient/GomokuClient
209 - 19
GameLiftErrors.h
in GomokuServer/GomokuServer/include/aws/gamelift/common
310 9 18
DescribePlayerSessionsRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
196 24 18
StopMatchBackfillRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
124 12 17
GameSession.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
324 43 15
footer.html
in hugo/hugo-theme-learn/layouts/partials
66 - 13
children.html
in hugo/hugo-theme-learn/layouts/shortcodes
86 - 12
GameLiftServerAPI.h
in GomokuServer/GomokuServer/include/aws/gamelift/server
63 - 12
theme.css
in hugo/hugo-theme-learn/static/css
1104 - 8
menu.html
in hugo/hugo-theme-learn/layouts/partials
140 - 8
Player.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
267 16 8
PlayerSession.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
290 44 7
DescribePlayerSessionsResult.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
119 7 7
StartMatchBackfillRequest.h
in GomokuServer/GomokuServer/include/aws/gamelift/server/model
160 15 7
DescribePlayerSessionsMapper.h
in GomokuServer/GomokuServer/include/aws/gamelift/internal/modelmapper
108 3 7
header.html
in hugo/hugo-theme-learn/layouts/partials
104 - 5
Session.cpp
in GomokuServer/GomokuServer
152 9 5
theme-aws.css
in hugo/static/css
243 - 4
404.html
in hugo/hugo-theme-learn/layouts
48 - 4