microsoft / MixedRealityToolkit-Unity
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 5,476 units with 85,562 lines of code in units (13.9% of code).
    • 38 very long units (5,231 lines of code)
    • 214 long units (14,657 lines of code)
    • 883 medium size units (27,112 lines of code)
    • 1,446 small units (21,376 lines of code)
    • 2,895 very small units (17,186 lines of code)
6% | 17% | 31% | 24% | 20%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cs6% | 17% | 31% | 24% | 20%
py0% | 0% | 0% | 49% | 50%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Assets/MRTK6% | 17% | 31% | 24% | 20%
scripts/ci0% | 0% | 0% | 47% | 52%
scripts/tools0% | 0% | 0% | 52% | 47%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void RenderInteractionList()
in Assets/MRTK/Core/Inspectors/ControllerPopupWindow.cs
374 79 2
protected override void OnEnable()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealityToolkitConfigurationProfileInspector.cs
276 27 0
private void RenderControllerList()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealityControllerMappingProfileInspector.cs
207 43 1
public override void OnInspectorGUI()
in Assets/MRTK/SDK/Features/UX/Scripts/Buttons/ButtonIconSet.cs
203 26 0
public override void OnInspectorGUI()
in Assets/MRTK/SDK/Editor/Inspectors/UX/Interactable/ButtonConfigHelperInspector.cs
187 29 0
private void RenderAppxBuildView()
in Assets/MRTK/Tools/BuildWindow/BuildDeployWindow.cs
184 31 0
public static void DrawProperty()
in Assets/MRTK/Core/Inspectors/PropertyDrawers/SceneInfoDrawer.cs
169 31 5
private void FindPlacementPlane()
in Assets/MRTK/SDK/Features/Utilities/Solvers/SurfaceMagnetism.cs
148 36 11
public override void DrawInspectorGUI()
in Assets/MRTK/Core/Inspectors/ServiceInspectors/HandJointServiceInspector.cs
142 48 1
private void CheckForGestures()
in Assets/MRTK/Providers/OpenXR/Scripts/OpenXRDeviceManager.cs
141 41 0
private void RenderCriteriaField()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealityInputActionRulesInspector.cs
139 21 2
private void InitializeServiceLocator()
in Assets/MRTK/Core/Services/MixedRealityToolkit.cs
136 33 0
private void RenderContentScenes()
in Assets/MRTK/Core/Inspectors/ServiceInspectors/SceneSystemInspector.cs
129 22 3
public void LoadInfo()
in Assets/MRTK/SDK/Features/UX/Scripts/Controllers/MixedRealityControllerInfo.cs
127 38 2
public override void OnInspectorGUI()
in Assets/MRTK/Core/Inspectors/Utilities/Lines/DataProviders/BaseLineDataProviderInspector.cs
122 19 0
private void ManageVisibility()
in Assets/MRTK/SDK/Features/UX/Scripts/ScrollingObjectCollection/ScrollingObjectCollection.cs
122 38 1
private RenderModel LoadRenderModel()
in Assets/MRTK/Providers/OpenVR/OpenVRRenderModel.cs
121 18 3
private void DrawChooseOutputFolders()
in Assets/MRTK/Tools/ExtensionServiceCreator/ExtensionServiceWizard.cs
121 18 0
private void Update()
in Assets/MRTK/Tools/RuntimeTools/Tools/InputFeatureUsageTool/ListInputFeatureUsages.cs
118 28 0
public override void OnInspectorGUI()
in Assets/MRTK/Core/Inspectors/Profiles/MixedRealitySceneSystemProfileInspector.cs
117 19 0