microsoft / IIS.ServiceMonitor
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 14 units with 542 lines of code in units (60.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (295 lines of code)
    • 2 simple units (58 lines of code)
    • 8 very simple units (189 lines of code)
0% | 0% | 54% | 10% | 34%
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% | 54% | 10% | 34%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/ServiceMonitor0% | 0% | 54% | 10% | 34%
Most Complex Units
Top 14 most complex units
Unit# linesMcCabe index# params
HRESULT IISConfigUtil::UpdateEnvironmentVarsToConfig()
in src/ServiceMonitor/IISConfigUtil.cpp
88 15 1
HRESULT Service_Monitor::StopServiceByName()
in src/ServiceMonitor/ServiceMonitor.cpp
66 15 2
int __cdecl _tmain()
in src/ServiceMonitor/Main.cpp
73 13 2
HRESULT Service_Monitor::StartServiceByName()
in src/ServiceMonitor/ServiceMonitor.cpp
68 11 2
BOOL WINAPI CtrlHandle()
in src/ServiceMonitor/Main.cpp
18 6 1
HRESULT Service_Monitor::MonitoringService()
in src/ServiceMonitor/ServiceMonitor.cpp
40 6 3
HRESULT IISConfigUtil::Initialize()
in src/ServiceMonitor/IISConfigUtil.cpp
32 5 0
HRESULT IISConfigUtil::BuildAppCmdCommand()
in src/ServiceMonitor/IISConfigUtil.cpp
40 5 5
HRESULT IISConfigUtil::RunCommand()
in src/ServiceMonitor/IISConfigUtil.cpp
34 5 2
BOOL IISConfigUtil::FilterEnv()
in src/ServiceMonitor/IISConfigUtil.cpp
17 4 3
HRESULT Service_Monitor::EnsureInitialized()
in src/ServiceMonitor/ServiceMonitor.cpp
23 4 0
HRESULT Service_Monitor::GetServiceHandle()
in src/ServiceMonitor/ServiceMonitor.cpp
22 4 2
void IISConfigUtil::Replace()
in src/ServiceMonitor/IISConfigUtil.cpp
10 2 3
VOID CALLBACK Service_Monitor::NotifyCallBack()
in src/ServiceMonitor/ServiceMonitor.cpp
11 2 1