aws-samples / amazon-gamelift-unreal-engine
Unit Size

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

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 10 units with 113 lines of code in units (68.5% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 0 medium size units (0 lines of code)
    • 6 small units (88 lines of code)
    • 4 very small units (25 lines of code)
0% | 0% | 0% | 77% | 22%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 0% | 95% | 4%
cpp0% | 0% | 0% | 55% | 44%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lambda0% | 0% | 0% | 95% | 4%
unreal0% | 0% | 0% | 55% | 44%
Alternative Visuals
Longest Units
Top 10 longest units
Unit# linesMcCabe index# params
def initiate_auth()
in lambda/GameLiftUnreal-CognitoLogin.py
17 4 2
def find_available_game_session()
in lambda/GameLiftUnreal-StartGameLiftSession.py
16 4 0
def lambda_handler()
in lambda/GameLiftUnreal-CognitoLogin.py
16 4 2
void UOfflineMainMenuWidget::LoginRequest()
in unreal/OfflineMainMenuWidget.cpp
15 1 2
12 3 3
def lambda_handler()
in lambda/GameLiftUnreal-StartGameLiftSession.py
12 2 2
void UOfflineMainMenuWidget::OnLoginResponse()
in unreal/OfflineMainMenuWidget.cpp
10 3 3
void UOfflineMainMenuWidget::StartSessionRequest()
in unreal/OfflineMainMenuWidget.cpp
9 1 1
void UOfflineMainMenuWidget::OnLoginClicked()
in unreal/OfflineMainMenuWidget.cpp
3 1 0
def myconverter()
in lambda/GameLiftUnreal-StartGameLiftSession.py
3 2 1