aws-deepracer / aws-deepracer-ctrl-pkg
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 45 units with 568 lines of code in units (56.0% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (92 lines of code)
    • 2 medium size units (60 lines of code)
    • 17 small units (261 lines of code)
    • 25 very small units (155 lines of code)
0% | 16% | 10% | 45% | 27%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 16% | 10% | 46% | 26%
py0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 16% | 10% | 46% | 26%
launch0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
bool AutoDriveCtrl::loadModelReq()
in ctrl_pkg/src/ctrl_state.cpp
92 11 13
void loadModelHdl()
in ctrl_pkg/src/ctrl_node.cpp
33 3 3
void CalibrationCtrl::setCalibration()
in ctrl_pkg/src/ctrl_state.cpp
27 9 2
bool ManualDriveCtrl::loadModelReq()
in ctrl_pkg/src/ctrl_state.cpp
20 1 13
bool CalibrationCtrl::loadModelReq()
in ctrl_pkg/src/ctrl_state.cpp
20 1 13
void CalibrationCtrl::getCalibration()
in ctrl_pkg/src/ctrl_state.cpp
19 3 2
void stateHdl()
in ctrl_pkg/src/ctrl_node.cpp
19 3 3
void getCarCalHdl()
in ctrl_pkg/src/ctrl_node.cpp
19 3 3
void getCtrlModesHdl()
in ctrl_pkg/src/ctrl_node.cpp
17 3 3
void setCarCalHdl()
in ctrl_pkg/src/ctrl_node.cpp
17 2 3
void AutoDriveCtrl::setConstantThrottle()
in ctrl_pkg/src/ctrl_state.cpp
15 4 1
void getCarLedHdl()
in ctrl_pkg/src/ctrl_node.cpp
15 2 3
void AutoDriveCtrl::setStateActive()
in ctrl_pkg/src/ctrl_state.cpp
14 3 1
void init()
in ctrl_pkg/src/ctrl_node.cpp
13 2 0
void enableVideo()
in ctrl_pkg/src/ctrl_node.cpp
13 2 0
void CalibrationCtrl::setLedValue()
in ctrl_pkg/src/ctrl_state.cpp
12 2 3
void waitForServices()
in ctrl_pkg/src/ctrl_node.cpp
12 3 0
void ctrlStateHdl()
in ctrl_pkg/src/ctrl_node.cpp
12 2 3
void setCarLedHdl()
in ctrl_pkg/src/ctrl_node.cpp
12 2 3
void autoThrottleHdl()
in ctrl_pkg/src/ctrl_node.cpp
12 2 3