microsoft / Windows-Driver-Frameworks
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 64 units with 665 lines of code in units (0.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 0 simple units (0 lines of code)
    • 64 very simple units (665 lines of code)
0% | 0% | 0% | 0% | 100%
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% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
hpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/framework/shared/inc0% | 0% | 0% | 0% | 100%
src/framework/shared/core0% | 0% | 0% | 0% | 100%
src/publicinc/wdf/kmdf0% | 0% | 0% | 0% | 100%
src/publicinc/wdf/umdf0% | 0% | 0% | 0% | 100%
src/framework/shared/support0% | 0% | 0% | 0% | 100%
src/framework/shared/enhancedverif0% | 0% | 0% | 0% | 100%
src/framework/shared/object0% | 0% | 0% | 0% | 100%
src/framework/umdf/fxlib0% | 0% | 0% | 0% | 100%
src/framework/shared/targets0% | 0% | 0% | 0% | 100%
src/framework/kmdf/src0% | 0% | 0% | 0% | 100%
src/framework/shared/irphandlers0% | 0% | 0% | 0% | 100%
src/framework/kmdf/inc0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
__in __drv_strictTypeMatch()
in src/framework/shared/support/fxresourcecollection.cpp
35 4 1
__out __drv_deref()
in src/framework/shared/inc/private/common/fxnonpagedobject.hpp
13 3 1
WINAPI DllMain()
in src/framework/umdf/fxlib/version/framework.cpp
18 3 3
FxMemoryBufferFromLookaside::operator new()
in src/framework/shared/core/fxmemorybufferfromlookaside.cpp
27 2 5
_Pre_notnull_ _Pre_writable_byte_size_()
in src/framework/shared/core/fxmemorybufferpreallocatedapi.cpp
26 2 1
_Pre_notnull_ _Pre_writable_byte_size_()
in src/framework/shared/core/fxrequestmemory.cpp
19 2 1
if SUCCEEDED()
in src/framework/shared/core/um/fxdeviceapium.cpp
4 2 1
operator delete()
in src/framework/shared/inc/private/common/fxstump.hpp
8 2 1
class DECLSPEC_ALIGN()
in src/framework/shared/inc/private/common/fxsyncrequest.hpp
45 2 1
__in __drv_when()
in src/framework/shared/object/fxobjectstatemachine.cpp
11 2 2
__out __drv_deref()
in src/framework/kmdf/inc/private/fxdmatransactionpacket.hpp
5 1 1
FxDeviceDescriptionEntry::operator new()
in src/framework/kmdf/src/core/fxchildlist.cpp
11 1 3
FxMemoryBufferFromPoolLookaside::operator new()
in src/framework/shared/core/fxmemorybufferfromlookaside.cpp
19 1 4
_Pre_notnull_ _Pre_writable_byte_size_()
in src/framework/shared/core/fxmemorybufferpreallocated.cpp
7 1 1
_Pre_notnull_ _Pre_writable_byte_size_()
in src/framework/shared/core/fxmemorybufferpreallocated.cpp
7 1 1
_Pre_notnull_ _Pre_writable_byte_size_()
in src/framework/shared/core/fxmemorybufferpreallocated.cpp
7 1 1
FxRequestFromLookaside::operator new()
in src/framework/shared/core/fxrequest.cpp
9 1 3
_Pre_notnull_ _Pre_writable_byte_size_()
in src/framework/shared/enhancedverif/km/vfwdfdynamics.cpp
10 1 1
_Pre_notnull_ _Pre_writable_byte_size_()
in src/framework/shared/enhancedverif/um/vfwdfdynamics.cpp
10 1 1
_Post_ _At_()
in src/framework/shared/inc/primitives/km/mxgeneralkm.h
11 1 3