facebookresearch / Replica-Dataset
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 40 units with 1,087 lines of code in units (57.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (194 lines of code)
    • 4 medium complex units (320 lines of code)
    • 6 simple units (291 lines of code)
    • 29 very simple units (282 lines of code)
0% | 17% | 29% | 26% | 25%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cpp0% | 21% | 34% | 30% | 13%
h0% | 0% | 0% | 7% | 92%
frag0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ReplicaSDK/ptex0% | 30% | 32% | 23% | 13%
ReplicaSDK/src0% | 0% | 39% | 45% | 14%
ReplicaSDK/include0% | 0% | 0% | 7% | 92%
ReplicaSDK/shaders0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
void PLYParse()
in ReplicaSDK/ptex/PLYParser.cpp
194 44 2
std::vector PTexMesh::SplitMesh()
in ReplicaSDK/ptex/PTexLib.cpp
98 18 2
int main()
in ReplicaSDK/src/viewer.cpp
113 18 2
void EGLCtx::PrintInformation()
in ReplicaSDK/ptex/EGL.cpp
55 12 0
void PTexMesh::CalculateAdjacency()
in ReplicaSDK/ptex/PTexLib.cpp
54 11 2
int main()
in ReplicaSDK/src/render.cpp
112 10 2
void PTexMesh::LoadAtlasData()
in ReplicaSDK/ptex/PTexLib.cpp
69 9 1
void PTexMesh::RenderWireframe()
in ReplicaSDK/ptex/PTexLib.cpp
34 7 2
bool InView()
in ReplicaSDK/include/MirrorRenderer.h
11 6 2
void PTexMesh::LoadMeshData()
in ReplicaSDK/ptex/PTexLib.cpp
46 6 1
inline Eigen::MatrixXd EigenMatrixFromJson()
in ReplicaSDK/src/MirrorSurface.cpp
19 6 1
void MirrorSurface::GenerateMask()
in ReplicaSDK/src/MirrorSurface.cpp
18 5 3
void CaptureReflection()
in ReplicaSDK/include/MirrorRenderer.h
23 4 6
bool MirrorSurface::InBoundary()
in ReplicaSDK/src/MirrorSurface.cpp
16 4 1
bool checkGLVersion()
in ReplicaSDK/include/GLCheck.h
15 3 0
void Render()
in ReplicaSDK/include/MirrorRenderer.h
28 2 4
void BeginDrawScene()
in ReplicaSDK/include/MirrorRenderer.h
9 2 1
void PTexMesh::RenderSubMeshDepth()
in ReplicaSDK/ptex/PTexLib.cpp
27 2 4
void PTexMesh::Render()
in ReplicaSDK/ptex/PTexLib.cpp
5 2 2
void PTexMesh::RenderDepth()
in ReplicaSDK/ptex/PTexLib.cpp
5 2 3